All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tendermint.types.Types Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: github.com/tendermint/tendermint/types/types.proto

package tendermint.types;

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);
  }
  /**
   * 
   * BlockIdFlag indicates which BlcokID the signature is for
   * 
* * Protobuf enum {@code tendermint.types.BlockIDFlag} */ public enum BlockIDFlag implements com.google.protobuf.ProtocolMessageEnum { /** * BLOCK_ID_FLAG_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; */ BLOCK_ID_FLAG_UNKNOWN(0), /** * BLOCK_ID_FLAG_ABSENT = 1 [(.gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; */ BLOCK_ID_FLAG_ABSENT(1), /** * BLOCK_ID_FLAG_COMMIT = 2 [(.gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; */ BLOCK_ID_FLAG_COMMIT(2), /** * BLOCK_ID_FLAG_NIL = 3 [(.gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; */ BLOCK_ID_FLAG_NIL(3), UNRECOGNIZED(-1), ; /** * BLOCK_ID_FLAG_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "BlockIDFlagUnknown"]; */ public static final int BLOCK_ID_FLAG_UNKNOWN_VALUE = 0; /** * BLOCK_ID_FLAG_ABSENT = 1 [(.gogoproto.enumvalue_customname) = "BlockIDFlagAbsent"]; */ public static final int BLOCK_ID_FLAG_ABSENT_VALUE = 1; /** * BLOCK_ID_FLAG_COMMIT = 2 [(.gogoproto.enumvalue_customname) = "BlockIDFlagCommit"]; */ public static final int BLOCK_ID_FLAG_COMMIT_VALUE = 2; /** * BLOCK_ID_FLAG_NIL = 3 [(.gogoproto.enumvalue_customname) = "BlockIDFlagNil"]; */ public static final int BLOCK_ID_FLAG_NIL_VALUE = 3; 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 BlockIDFlag 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 BlockIDFlag forNumber(int value) { switch (value) { case 0: return BLOCK_ID_FLAG_UNKNOWN; case 1: return BLOCK_ID_FLAG_ABSENT; case 2: return BLOCK_ID_FLAG_COMMIT; case 3: return BLOCK_ID_FLAG_NIL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BlockIDFlag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BlockIDFlag findValueByNumber(int number) { return BlockIDFlag.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.types.Types.getDescriptor().getEnumTypes().get(0); } private static final BlockIDFlag[] VALUES = values(); public static BlockIDFlag 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 BlockIDFlag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tendermint.types.BlockIDFlag) } /** *
   * SignedMsgType is a type of signed message in the consensus.
   * 
* * Protobuf enum {@code tendermint.types.SignedMsgType} */ public enum SignedMsgType implements com.google.protobuf.ProtocolMessageEnum { /** * SIGNED_MSG_TYPE_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "UnknownType"]; */ SIGNED_MSG_TYPE_UNKNOWN(0), /** *
     * Votes
     * 
* * SIGNED_MSG_TYPE_PREVOTE = 1 [(.gogoproto.enumvalue_customname) = "PrevoteType"]; */ SIGNED_MSG_TYPE_PREVOTE(1), /** * SIGNED_MSG_TYPE_PRECOMMIT = 2 [(.gogoproto.enumvalue_customname) = "PrecommitType"]; */ SIGNED_MSG_TYPE_PRECOMMIT(2), /** *
     * Proposals
     * 
* * SIGNED_MSG_TYPE_PROPOSAL = 32 [(.gogoproto.enumvalue_customname) = "ProposalType"]; */ SIGNED_MSG_TYPE_PROPOSAL(32), UNRECOGNIZED(-1), ; /** * SIGNED_MSG_TYPE_UNKNOWN = 0 [(.gogoproto.enumvalue_customname) = "UnknownType"]; */ public static final int SIGNED_MSG_TYPE_UNKNOWN_VALUE = 0; /** *
     * Votes
     * 
* * SIGNED_MSG_TYPE_PREVOTE = 1 [(.gogoproto.enumvalue_customname) = "PrevoteType"]; */ public static final int SIGNED_MSG_TYPE_PREVOTE_VALUE = 1; /** * SIGNED_MSG_TYPE_PRECOMMIT = 2 [(.gogoproto.enumvalue_customname) = "PrecommitType"]; */ public static final int SIGNED_MSG_TYPE_PRECOMMIT_VALUE = 2; /** *
     * Proposals
     * 
* * SIGNED_MSG_TYPE_PROPOSAL = 32 [(.gogoproto.enumvalue_customname) = "ProposalType"]; */ public static final int SIGNED_MSG_TYPE_PROPOSAL_VALUE = 32; 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 SignedMsgType 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 SignedMsgType forNumber(int value) { switch (value) { case 0: return SIGNED_MSG_TYPE_UNKNOWN; case 1: return SIGNED_MSG_TYPE_PREVOTE; case 2: return SIGNED_MSG_TYPE_PRECOMMIT; case 32: return SIGNED_MSG_TYPE_PROPOSAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SignedMsgType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SignedMsgType findValueByNumber(int number) { return SignedMsgType.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.types.Types.getDescriptor().getEnumTypes().get(1); } private static final SignedMsgType[] VALUES = values(); public static SignedMsgType 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 SignedMsgType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:tendermint.types.SignedMsgType) } public interface PartSetHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.PartSetHeader) com.google.protobuf.MessageOrBuilder { /** * uint32 total = 1; * @return The total. */ int getTotal(); /** * bytes hash = 2; * @return The hash. */ com.google.protobuf.ByteString getHash(); } /** *
   * PartsetHeader
   * 
* * Protobuf type {@code tendermint.types.PartSetHeader} */ public static final class PartSetHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.PartSetHeader) PartSetHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use PartSetHeader.newBuilder() to construct. private PartSetHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PartSetHeader() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PartSetHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PartSetHeader( 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: { total_ = input.readUInt32(); break; } case 18: { hash_ = 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.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.PartSetHeader.class, tendermint.types.Types.PartSetHeader.Builder.class); } public static final int TOTAL_FIELD_NUMBER = 1; private int total_; /** * uint32 total = 1; * @return The total. */ @java.lang.Override public int getTotal() { return total_; } public static final int HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hash_; /** * bytes hash = 2; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } 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 (total_ != 0) { output.writeUInt32(1, total_); } if (!hash_.isEmpty()) { output.writeBytes(2, hash_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (total_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, total_); } if (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, hash_); } 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.types.Types.PartSetHeader)) { return super.equals(obj); } tendermint.types.Types.PartSetHeader other = (tendermint.types.Types.PartSetHeader) obj; if (getTotal() != other.getTotal()) return false; if (!getHash() .equals(other.getHash())) 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) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + getTotal(); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.PartSetHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.PartSetHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.PartSetHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.PartSetHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.PartSetHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.PartSetHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.PartSetHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.PartSetHeader 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.types.Types.PartSetHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.PartSetHeader 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.types.Types.PartSetHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.PartSetHeader 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.types.Types.PartSetHeader 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; } /** *
     * PartsetHeader
     * 
* * Protobuf type {@code tendermint.types.PartSetHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.PartSetHeader) tendermint.types.Types.PartSetHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.PartSetHeader.class, tendermint.types.Types.PartSetHeader.Builder.class); } // Construct using tendermint.types.Types.PartSetHeader.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(); total_ = 0; hash_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_PartSetHeader_descriptor; } @java.lang.Override public tendermint.types.Types.PartSetHeader getDefaultInstanceForType() { return tendermint.types.Types.PartSetHeader.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.PartSetHeader build() { tendermint.types.Types.PartSetHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.PartSetHeader buildPartial() { tendermint.types.Types.PartSetHeader result = new tendermint.types.Types.PartSetHeader(this); result.total_ = total_; result.hash_ = hash_; 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.types.Types.PartSetHeader) { return mergeFrom((tendermint.types.Types.PartSetHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.PartSetHeader other) { if (other == tendermint.types.Types.PartSetHeader.getDefaultInstance()) return this; if (other.getTotal() != 0) { setTotal(other.getTotal()); } if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } 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.types.Types.PartSetHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.PartSetHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int total_ ; /** * uint32 total = 1; * @return The total. */ @java.lang.Override public int getTotal() { return total_; } /** * uint32 total = 1; * @param value The total to set. * @return This builder for chaining. */ public Builder setTotal(int value) { total_ = value; onChanged(); return this; } /** * uint32 total = 1; * @return This builder for chaining. */ public Builder clearTotal() { total_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 2; * @return The hash. */ @java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); 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.types.PartSetHeader) } // @@protoc_insertion_point(class_scope:tendermint.types.PartSetHeader) private static final tendermint.types.Types.PartSetHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.PartSetHeader(); } public static tendermint.types.Types.PartSetHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartSetHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PartSetHeader(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.types.Types.PartSetHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PartOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Part) com.google.protobuf.MessageOrBuilder { /** * uint32 index = 1; * @return The index. */ int getIndex(); /** * bytes bytes = 2; * @return The bytes. */ com.google.protobuf.ByteString getBytes(); /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return Whether the proof field is set. */ boolean hasProof(); /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return The proof. */ tendermint.crypto.ProofOuterClass.Proof getProof(); /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder(); } /** * Protobuf type {@code tendermint.types.Part} */ public static final class Part extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Part) PartOrBuilder { private static final long serialVersionUID = 0L; // Use Part.newBuilder() to construct. private Part(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Part() { bytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Part(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Part( 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: { bytes_ = input.readBytes(); break; } case 26: { tendermint.crypto.ProofOuterClass.Proof.Builder subBuilder = null; if (proof_ != null) { subBuilder = proof_.toBuilder(); } proof_ = input.readMessage(tendermint.crypto.ProofOuterClass.Proof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proof_); proof_ = 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.types.Types.internal_static_tendermint_types_Part_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Part.class, tendermint.types.Types.Part.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 BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString bytes_; /** * bytes bytes = 2; * @return The bytes. */ @java.lang.Override public com.google.protobuf.ByteString getBytes() { return bytes_; } public static final int PROOF_FIELD_NUMBER = 3; private tendermint.crypto.ProofOuterClass.Proof proof_; /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return Whether the proof field is set. */ @java.lang.Override public boolean hasProof() { return proof_ != null; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return The proof. */ @java.lang.Override public tendermint.crypto.ProofOuterClass.Proof getProof() { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { return getProof(); } 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 (!bytes_.isEmpty()) { output.writeBytes(2, bytes_); } if (proof_ != null) { output.writeMessage(3, getProof()); } 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 (!bytes_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, bytes_); } if (proof_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getProof()); } 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.types.Types.Part)) { return super.equals(obj); } tendermint.types.Types.Part other = (tendermint.types.Types.Part) obj; if (getIndex() != other.getIndex()) return false; if (!getBytes() .equals(other.getBytes())) return false; if (hasProof() != other.hasProof()) return false; if (hasProof()) { if (!getProof() .equals(other.getProof())) 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) + BYTES_FIELD_NUMBER; hash = (53 * hash) + getBytes().hashCode(); if (hasProof()) { hash = (37 * hash) + PROOF_FIELD_NUMBER; hash = (53 * hash) + getProof().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Part parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Part parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Part parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Part parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Part parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Part parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Part parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Part 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.types.Types.Part parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Part 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.types.Types.Part parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Part 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.types.Types.Part 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.types.Part} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Part) tendermint.types.Types.PartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Part_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Part_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Part.class, tendermint.types.Types.Part.Builder.class); } // Construct using tendermint.types.Types.Part.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; bytes_ = com.google.protobuf.ByteString.EMPTY; if (proofBuilder_ == null) { proof_ = null; } else { proof_ = null; proofBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Part_descriptor; } @java.lang.Override public tendermint.types.Types.Part getDefaultInstanceForType() { return tendermint.types.Types.Part.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Part build() { tendermint.types.Types.Part result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Part buildPartial() { tendermint.types.Types.Part result = new tendermint.types.Types.Part(this); result.index_ = index_; result.bytes_ = bytes_; if (proofBuilder_ == null) { result.proof_ = proof_; } else { result.proof_ = proofBuilder_.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.types.Types.Part) { return mergeFrom((tendermint.types.Types.Part)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Part other) { if (other == tendermint.types.Types.Part.getDefaultInstance()) return this; if (other.getIndex() != 0) { setIndex(other.getIndex()); } if (other.getBytes() != com.google.protobuf.ByteString.EMPTY) { setBytes(other.getBytes()); } if (other.hasProof()) { mergeProof(other.getProof()); } 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.types.Types.Part parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Part) 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 bytes_ = com.google.protobuf.ByteString.EMPTY; /** * bytes bytes = 2; * @return The bytes. */ @java.lang.Override public com.google.protobuf.ByteString getBytes() { return bytes_; } /** * bytes bytes = 2; * @param value The bytes to set. * @return This builder for chaining. */ public Builder setBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bytes_ = value; onChanged(); return this; } /** * bytes bytes = 2; * @return This builder for chaining. */ public Builder clearBytes() { bytes_ = getDefaultInstance().getBytes(); onChanged(); return this; } private tendermint.crypto.ProofOuterClass.Proof proof_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder> proofBuilder_; /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return Whether the proof field is set. */ public boolean hasProof() { return proofBuilder_ != null || proof_ != null; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; * @return The proof. */ public tendermint.crypto.ProofOuterClass.Proof getProof() { if (proofBuilder_ == null) { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } else { return proofBuilder_.getMessage(); } } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public Builder setProof(tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proof_ = value; onChanged(); } else { proofBuilder_.setMessage(value); } return this; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public Builder setProof( tendermint.crypto.ProofOuterClass.Proof.Builder builderForValue) { if (proofBuilder_ == null) { proof_ = builderForValue.build(); onChanged(); } else { proofBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public Builder mergeProof(tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (proof_ != null) { proof_ = tendermint.crypto.ProofOuterClass.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); } else { proof_ = value; } onChanged(); } else { proofBuilder_.mergeFrom(value); } return this; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public Builder clearProof() { if (proofBuilder_ == null) { proof_ = null; onChanged(); } else { proof_ = null; proofBuilder_ = null; } return this; } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public tendermint.crypto.ProofOuterClass.Proof.Builder getProofBuilder() { onChanged(); return getProofFieldBuilder().getBuilder(); } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ public tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { if (proofBuilder_ != null) { return proofBuilder_.getMessageOrBuilder(); } else { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } } /** * .tendermint.crypto.Proof proof = 3 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder> getProofFieldBuilder() { if (proofBuilder_ == null) { proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder>( getProof(), getParentForChildren(), isClean()); proof_ = null; } return proofBuilder_; } @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.types.Part) } // @@protoc_insertion_point(class_scope:tendermint.types.Part) private static final tendermint.types.Types.Part DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Part(); } public static tendermint.types.Types.Part getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Part parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Part(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.types.Types.Part getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockIDOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.BlockID) com.google.protobuf.MessageOrBuilder { /** * bytes hash = 1; * @return The hash. */ com.google.protobuf.ByteString getHash(); /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return Whether the partSetHeader field is set. */ boolean hasPartSetHeader(); /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return The partSetHeader. */ tendermint.types.Types.PartSetHeader getPartSetHeader(); /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ tendermint.types.Types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder(); } /** *
   * BlockID
   * 
* * Protobuf type {@code tendermint.types.BlockID} */ public static final class BlockID extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.BlockID) BlockIDOrBuilder { private static final long serialVersionUID = 0L; // Use BlockID.newBuilder() to construct. private BlockID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockID() { hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockID(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockID( 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: { hash_ = input.readBytes(); break; } case 18: { tendermint.types.Types.PartSetHeader.Builder subBuilder = null; if (partSetHeader_ != null) { subBuilder = partSetHeader_.toBuilder(); } partSetHeader_ = input.readMessage(tendermint.types.Types.PartSetHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(partSetHeader_); partSetHeader_ = 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.types.Types.internal_static_tendermint_types_BlockID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_BlockID_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.BlockID.class, tendermint.types.Types.BlockID.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 PART_SET_HEADER_FIELD_NUMBER = 2; private tendermint.types.Types.PartSetHeader partSetHeader_; /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return Whether the partSetHeader field is set. */ @java.lang.Override public boolean hasPartSetHeader() { return partSetHeader_ != null; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return The partSetHeader. */ @java.lang.Override public tendermint.types.Types.PartSetHeader getPartSetHeader() { return partSetHeader_ == null ? tendermint.types.Types.PartSetHeader.getDefaultInstance() : partSetHeader_; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.types.Types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder() { return getPartSetHeader(); } 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 (partSetHeader_ != null) { output.writeMessage(2, getPartSetHeader()); } 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 (partSetHeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPartSetHeader()); } 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.types.Types.BlockID)) { return super.equals(obj); } tendermint.types.Types.BlockID other = (tendermint.types.Types.BlockID) obj; if (!getHash() .equals(other.getHash())) return false; if (hasPartSetHeader() != other.hasPartSetHeader()) return false; if (hasPartSetHeader()) { if (!getPartSetHeader() .equals(other.getPartSetHeader())) 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 (hasPartSetHeader()) { hash = (37 * hash) + PART_SET_HEADER_FIELD_NUMBER; hash = (53 * hash) + getPartSetHeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.BlockID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.BlockID 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.types.Types.BlockID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.BlockID 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.types.Types.BlockID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.BlockID 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.types.Types.BlockID 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; } /** *
     * BlockID
     * 
* * Protobuf type {@code tendermint.types.BlockID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.BlockID) tendermint.types.Types.BlockIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_BlockID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_BlockID_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.BlockID.class, tendermint.types.Types.BlockID.Builder.class); } // Construct using tendermint.types.Types.BlockID.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(); hash_ = com.google.protobuf.ByteString.EMPTY; if (partSetHeaderBuilder_ == null) { partSetHeader_ = null; } else { partSetHeader_ = null; partSetHeaderBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_BlockID_descriptor; } @java.lang.Override public tendermint.types.Types.BlockID getDefaultInstanceForType() { return tendermint.types.Types.BlockID.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.BlockID build() { tendermint.types.Types.BlockID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.BlockID buildPartial() { tendermint.types.Types.BlockID result = new tendermint.types.Types.BlockID(this); result.hash_ = hash_; if (partSetHeaderBuilder_ == null) { result.partSetHeader_ = partSetHeader_; } else { result.partSetHeader_ = partSetHeaderBuilder_.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.types.Types.BlockID) { return mergeFrom((tendermint.types.Types.BlockID)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.BlockID other) { if (other == tendermint.types.Types.BlockID.getDefaultInstance()) return this; if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.hasPartSetHeader()) { mergePartSetHeader(other.getPartSetHeader()); } 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.types.Types.BlockID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.BlockID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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.PartSetHeader partSetHeader_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.PartSetHeader, tendermint.types.Types.PartSetHeader.Builder, tendermint.types.Types.PartSetHeaderOrBuilder> partSetHeaderBuilder_; /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return Whether the partSetHeader field is set. */ public boolean hasPartSetHeader() { return partSetHeaderBuilder_ != null || partSetHeader_ != null; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; * @return The partSetHeader. */ public tendermint.types.Types.PartSetHeader getPartSetHeader() { if (partSetHeaderBuilder_ == null) { return partSetHeader_ == null ? tendermint.types.Types.PartSetHeader.getDefaultInstance() : partSetHeader_; } else { return partSetHeaderBuilder_.getMessage(); } } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public Builder setPartSetHeader(tendermint.types.Types.PartSetHeader value) { if (partSetHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } partSetHeader_ = value; onChanged(); } else { partSetHeaderBuilder_.setMessage(value); } return this; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public Builder setPartSetHeader( tendermint.types.Types.PartSetHeader.Builder builderForValue) { if (partSetHeaderBuilder_ == null) { partSetHeader_ = builderForValue.build(); onChanged(); } else { partSetHeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public Builder mergePartSetHeader(tendermint.types.Types.PartSetHeader value) { if (partSetHeaderBuilder_ == null) { if (partSetHeader_ != null) { partSetHeader_ = tendermint.types.Types.PartSetHeader.newBuilder(partSetHeader_).mergeFrom(value).buildPartial(); } else { partSetHeader_ = value; } onChanged(); } else { partSetHeaderBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public Builder clearPartSetHeader() { if (partSetHeaderBuilder_ == null) { partSetHeader_ = null; onChanged(); } else { partSetHeader_ = null; partSetHeaderBuilder_ = null; } return this; } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.PartSetHeader.Builder getPartSetHeaderBuilder() { onChanged(); return getPartSetHeaderFieldBuilder().getBuilder(); } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.PartSetHeaderOrBuilder getPartSetHeaderOrBuilder() { if (partSetHeaderBuilder_ != null) { return partSetHeaderBuilder_.getMessageOrBuilder(); } else { return partSetHeader_ == null ? tendermint.types.Types.PartSetHeader.getDefaultInstance() : partSetHeader_; } } /** * .tendermint.types.PartSetHeader part_set_header = 2 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.PartSetHeader, tendermint.types.Types.PartSetHeader.Builder, tendermint.types.Types.PartSetHeaderOrBuilder> getPartSetHeaderFieldBuilder() { if (partSetHeaderBuilder_ == null) { partSetHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.PartSetHeader, tendermint.types.Types.PartSetHeader.Builder, tendermint.types.Types.PartSetHeaderOrBuilder>( getPartSetHeader(), getParentForChildren(), isClean()); partSetHeader_ = null; } return partSetHeaderBuilder_; } @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.types.BlockID) } // @@protoc_insertion_point(class_scope:tendermint.types.BlockID) private static final tendermint.types.Types.BlockID DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.BlockID(); } public static tendermint.types.Types.BlockID getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockID parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockID(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.types.Types.BlockID getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Header) com.google.protobuf.MessageOrBuilder { /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return Whether the version field is set. */ boolean hasVersion(); /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return The version. */ tendermint.version.Types.Consensus getVersion(); /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ tendermint.version.Types.ConsensusOrBuilder getVersionOrBuilder(); /** * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; * @return The chainId. */ java.lang.String getChainId(); /** * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; * @return The bytes for chainId. */ com.google.protobuf.ByteString getChainIdBytes(); /** * int64 height = 3; * @return The height. */ long getHeight(); /** * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the time field is set. */ boolean hasTime(); /** * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The time. */ com.google.protobuf.Timestamp getTime(); /** * .google.protobuf.Timestamp time = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return Whether the lastBlockId field is set. */ boolean hasLastBlockId(); /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return The lastBlockId. */ tendermint.types.Types.BlockID getLastBlockId(); /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ tendermint.types.Types.BlockIDOrBuilder getLastBlockIdOrBuilder(); /** *
     * hashes of block data
     * 
* * bytes last_commit_hash = 6; * @return The lastCommitHash. */ com.google.protobuf.ByteString getLastCommitHash(); /** *
     * transactions
     * 
* * bytes data_hash = 7; * @return The dataHash. */ com.google.protobuf.ByteString getDataHash(); /** *
     * hashes from the app output from the prev block
     * 
* * bytes validators_hash = 8; * @return The validatorsHash. */ com.google.protobuf.ByteString getValidatorsHash(); /** *
     * validators for the next block
     * 
* * bytes next_validators_hash = 9; * @return The nextValidatorsHash. */ com.google.protobuf.ByteString getNextValidatorsHash(); /** *
     * consensus params for current block
     * 
* * bytes consensus_hash = 10; * @return The consensusHash. */ com.google.protobuf.ByteString getConsensusHash(); /** *
     * state after txs from the previous block
     * 
* * bytes app_hash = 11; * @return The appHash. */ com.google.protobuf.ByteString getAppHash(); /** *
     * root hash of all results from the txs from the previous block
     * 
* * bytes last_results_hash = 12; * @return The lastResultsHash. */ com.google.protobuf.ByteString getLastResultsHash(); /** *
     * consensus info
     * 
* * bytes evidence_hash = 13; * @return The evidenceHash. */ com.google.protobuf.ByteString getEvidenceHash(); /** *
     * original proposer of the block
     * 
* * bytes proposer_address = 14; * @return The proposerAddress. */ com.google.protobuf.ByteString getProposerAddress(); } /** *
   * Header defines the structure of a Tendermint block header.
   * 
* * Protobuf type {@code tendermint.types.Header} */ public static final class Header extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Header) HeaderOrBuilder { private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Header() { chainId_ = ""; lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; validatorsHash_ = com.google.protobuf.ByteString.EMPTY; nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; consensusHash_ = com.google.protobuf.ByteString.EMPTY; appHash_ = com.google.protobuf.ByteString.EMPTY; lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; evidenceHash_ = com.google.protobuf.ByteString.EMPTY; proposerAddress_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tendermint.version.Types.Consensus.Builder subBuilder = null; if (version_ != null) { subBuilder = version_.toBuilder(); } version_ = input.readMessage(tendermint.version.Types.Consensus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(version_); version_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); chainId_ = s; break; } case 24: { height_ = input.readInt64(); break; } case 34: { 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 42: { tendermint.types.Types.BlockID.Builder subBuilder = null; if (lastBlockId_ != null) { subBuilder = lastBlockId_.toBuilder(); } lastBlockId_ = input.readMessage(tendermint.types.Types.BlockID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastBlockId_); lastBlockId_ = subBuilder.buildPartial(); } break; } case 50: { lastCommitHash_ = input.readBytes(); break; } case 58: { dataHash_ = input.readBytes(); break; } case 66: { validatorsHash_ = input.readBytes(); break; } case 74: { nextValidatorsHash_ = input.readBytes(); break; } case 82: { consensusHash_ = input.readBytes(); break; } case 90: { appHash_ = input.readBytes(); break; } case 98: { lastResultsHash_ = input.readBytes(); break; } case 106: { evidenceHash_ = input.readBytes(); break; } case 114: { proposerAddress_ = 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.types.Types.internal_static_tendermint_types_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Header.class, tendermint.types.Types.Header.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private tendermint.version.Types.Consensus version_; /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return Whether the version field is set. */ @java.lang.Override public boolean hasVersion() { return version_ != null; } /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return The version. */ @java.lang.Override public tendermint.version.Types.Consensus getVersion() { return version_ == null ? tendermint.version.Types.Consensus.getDefaultInstance() : version_; } /** *
     * basic block info
     * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.version.Types.ConsensusOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int CHAIN_ID_FIELD_NUMBER = 2; private volatile java.lang.Object chainId_; /** * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; * @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 [(.gogoproto.customname) = "ChainID"]; * @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 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 TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp time_; /** * .google.protobuf.Timestamp time = 4 [(.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 = 4 [(.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 = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return getTime(); } public static final int LAST_BLOCK_ID_FIELD_NUMBER = 5; private tendermint.types.Types.BlockID lastBlockId_; /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return Whether the lastBlockId field is set. */ @java.lang.Override public boolean hasLastBlockId() { return lastBlockId_ != null; } /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return The lastBlockId. */ @java.lang.Override public tendermint.types.Types.BlockID getLastBlockId() { return lastBlockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : lastBlockId_; } /** *
     * prev block info
     * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.types.Types.BlockIDOrBuilder getLastBlockIdOrBuilder() { return getLastBlockId(); } public static final int LAST_COMMIT_HASH_FIELD_NUMBER = 6; private com.google.protobuf.ByteString lastCommitHash_; /** *
     * hashes of block data
     * 
* * bytes last_commit_hash = 6; * @return The lastCommitHash. */ @java.lang.Override public com.google.protobuf.ByteString getLastCommitHash() { return lastCommitHash_; } public static final int DATA_HASH_FIELD_NUMBER = 7; private com.google.protobuf.ByteString dataHash_; /** *
     * transactions
     * 
* * bytes data_hash = 7; * @return The dataHash. */ @java.lang.Override public com.google.protobuf.ByteString getDataHash() { return dataHash_; } public static final int VALIDATORS_HASH_FIELD_NUMBER = 8; private com.google.protobuf.ByteString validatorsHash_; /** *
     * hashes from the app output from the prev block
     * 
* * bytes validators_hash = 8; * @return The validatorsHash. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorsHash() { return validatorsHash_; } public static final int NEXT_VALIDATORS_HASH_FIELD_NUMBER = 9; private com.google.protobuf.ByteString nextValidatorsHash_; /** *
     * validators for the next block
     * 
* * bytes next_validators_hash = 9; * @return The nextValidatorsHash. */ @java.lang.Override public com.google.protobuf.ByteString getNextValidatorsHash() { return nextValidatorsHash_; } public static final int CONSENSUS_HASH_FIELD_NUMBER = 10; private com.google.protobuf.ByteString consensusHash_; /** *
     * consensus params for current block
     * 
* * bytes consensus_hash = 10; * @return The consensusHash. */ @java.lang.Override public com.google.protobuf.ByteString getConsensusHash() { return consensusHash_; } public static final int APP_HASH_FIELD_NUMBER = 11; private com.google.protobuf.ByteString appHash_; /** *
     * state after txs from the previous block
     * 
* * bytes app_hash = 11; * @return The appHash. */ @java.lang.Override public com.google.protobuf.ByteString getAppHash() { return appHash_; } public static final int LAST_RESULTS_HASH_FIELD_NUMBER = 12; private com.google.protobuf.ByteString lastResultsHash_; /** *
     * root hash of all results from the txs from the previous block
     * 
* * bytes last_results_hash = 12; * @return The lastResultsHash. */ @java.lang.Override public com.google.protobuf.ByteString getLastResultsHash() { return lastResultsHash_; } public static final int EVIDENCE_HASH_FIELD_NUMBER = 13; private com.google.protobuf.ByteString evidenceHash_; /** *
     * consensus info
     * 
* * bytes evidence_hash = 13; * @return The evidenceHash. */ @java.lang.Override public com.google.protobuf.ByteString getEvidenceHash() { return evidenceHash_; } public static final int PROPOSER_ADDRESS_FIELD_NUMBER = 14; private com.google.protobuf.ByteString proposerAddress_; /** *
     * original proposer of the block
     * 
* * bytes proposer_address = 14; * @return The proposerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getProposerAddress() { return proposerAddress_; } 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 (version_ != null) { output.writeMessage(1, getVersion()); } if (!getChainIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, chainId_); } if (height_ != 0L) { output.writeInt64(3, height_); } if (time_ != null) { output.writeMessage(4, getTime()); } if (lastBlockId_ != null) { output.writeMessage(5, getLastBlockId()); } if (!lastCommitHash_.isEmpty()) { output.writeBytes(6, lastCommitHash_); } if (!dataHash_.isEmpty()) { output.writeBytes(7, dataHash_); } if (!validatorsHash_.isEmpty()) { output.writeBytes(8, validatorsHash_); } if (!nextValidatorsHash_.isEmpty()) { output.writeBytes(9, nextValidatorsHash_); } if (!consensusHash_.isEmpty()) { output.writeBytes(10, consensusHash_); } if (!appHash_.isEmpty()) { output.writeBytes(11, appHash_); } if (!lastResultsHash_.isEmpty()) { output.writeBytes(12, lastResultsHash_); } if (!evidenceHash_.isEmpty()) { output.writeBytes(13, evidenceHash_); } if (!proposerAddress_.isEmpty()) { output.writeBytes(14, proposerAddress_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (version_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVersion()); } if (!getChainIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, chainId_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, height_); } if (time_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTime()); } if (lastBlockId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastBlockId()); } if (!lastCommitHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, lastCommitHash_); } if (!dataHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, dataHash_); } if (!validatorsHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, validatorsHash_); } if (!nextValidatorsHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, nextValidatorsHash_); } if (!consensusHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, consensusHash_); } if (!appHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, appHash_); } if (!lastResultsHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, lastResultsHash_); } if (!evidenceHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, evidenceHash_); } if (!proposerAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, proposerAddress_); } 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.types.Types.Header)) { return super.equals(obj); } tendermint.types.Types.Header other = (tendermint.types.Types.Header) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { if (!getVersion() .equals(other.getVersion())) return false; } if (!getChainId() .equals(other.getChainId())) return false; if (getHeight() != other.getHeight()) return false; if (hasTime() != other.hasTime()) return false; if (hasTime()) { if (!getTime() .equals(other.getTime())) return false; } if (hasLastBlockId() != other.hasLastBlockId()) return false; if (hasLastBlockId()) { if (!getLastBlockId() .equals(other.getLastBlockId())) return false; } if (!getLastCommitHash() .equals(other.getLastCommitHash())) return false; if (!getDataHash() .equals(other.getDataHash())) return false; if (!getValidatorsHash() .equals(other.getValidatorsHash())) return false; if (!getNextValidatorsHash() .equals(other.getNextValidatorsHash())) return false; if (!getConsensusHash() .equals(other.getConsensusHash())) return false; if (!getAppHash() .equals(other.getAppHash())) return false; if (!getLastResultsHash() .equals(other.getLastResultsHash())) return false; if (!getEvidenceHash() .equals(other.getEvidenceHash())) return false; if (!getProposerAddress() .equals(other.getProposerAddress())) 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 (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); } hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; hash = (53 * hash) + getChainId().hashCode(); hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } if (hasLastBlockId()) { hash = (37 * hash) + LAST_BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getLastBlockId().hashCode(); } hash = (37 * hash) + LAST_COMMIT_HASH_FIELD_NUMBER; hash = (53 * hash) + getLastCommitHash().hashCode(); hash = (37 * hash) + DATA_HASH_FIELD_NUMBER; hash = (53 * hash) + getDataHash().hashCode(); hash = (37 * hash) + VALIDATORS_HASH_FIELD_NUMBER; hash = (53 * hash) + getValidatorsHash().hashCode(); hash = (37 * hash) + NEXT_VALIDATORS_HASH_FIELD_NUMBER; hash = (53 * hash) + getNextValidatorsHash().hashCode(); hash = (37 * hash) + CONSENSUS_HASH_FIELD_NUMBER; hash = (53 * hash) + getConsensusHash().hashCode(); hash = (37 * hash) + APP_HASH_FIELD_NUMBER; hash = (53 * hash) + getAppHash().hashCode(); hash = (37 * hash) + LAST_RESULTS_HASH_FIELD_NUMBER; hash = (53 * hash) + getLastResultsHash().hashCode(); hash = (37 * hash) + EVIDENCE_HASH_FIELD_NUMBER; hash = (53 * hash) + getEvidenceHash().hashCode(); hash = (37 * hash) + PROPOSER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getProposerAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Header parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Header parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Header parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Header parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tendermint.types.Types.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Header parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tendermint.types.Types.Header parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tendermint.types.Types.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Header defines the structure of a Tendermint block header.
     * 
* * Protobuf type {@code tendermint.types.Header} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Header) tendermint.types.Types.HeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Header.class, tendermint.types.Types.Header.Builder.class); } // Construct using tendermint.types.Types.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (versionBuilder_ == null) { version_ = null; } else { version_ = null; versionBuilder_ = null; } chainId_ = ""; height_ = 0L; if (timeBuilder_ == null) { time_ = null; } else { time_ = null; timeBuilder_ = null; } if (lastBlockIdBuilder_ == null) { lastBlockId_ = null; } else { lastBlockId_ = null; lastBlockIdBuilder_ = null; } lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; dataHash_ = com.google.protobuf.ByteString.EMPTY; validatorsHash_ = com.google.protobuf.ByteString.EMPTY; nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; consensusHash_ = com.google.protobuf.ByteString.EMPTY; appHash_ = com.google.protobuf.ByteString.EMPTY; lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; evidenceHash_ = com.google.protobuf.ByteString.EMPTY; proposerAddress_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Header_descriptor; } @java.lang.Override public tendermint.types.Types.Header getDefaultInstanceForType() { return tendermint.types.Types.Header.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Header build() { tendermint.types.Types.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Header buildPartial() { tendermint.types.Types.Header result = new tendermint.types.Types.Header(this); if (versionBuilder_ == null) { result.version_ = version_; } else { result.version_ = versionBuilder_.build(); } result.chainId_ = chainId_; result.height_ = height_; if (timeBuilder_ == null) { result.time_ = time_; } else { result.time_ = timeBuilder_.build(); } if (lastBlockIdBuilder_ == null) { result.lastBlockId_ = lastBlockId_; } else { result.lastBlockId_ = lastBlockIdBuilder_.build(); } result.lastCommitHash_ = lastCommitHash_; result.dataHash_ = dataHash_; result.validatorsHash_ = validatorsHash_; result.nextValidatorsHash_ = nextValidatorsHash_; result.consensusHash_ = consensusHash_; result.appHash_ = appHash_; result.lastResultsHash_ = lastResultsHash_; result.evidenceHash_ = evidenceHash_; result.proposerAddress_ = proposerAddress_; 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.types.Types.Header) { return mergeFrom((tendermint.types.Types.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Header other) { if (other == tendermint.types.Types.Header.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } if (!other.getChainId().isEmpty()) { chainId_ = other.chainId_; onChanged(); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.hasTime()) { mergeTime(other.getTime()); } if (other.hasLastBlockId()) { mergeLastBlockId(other.getLastBlockId()); } if (other.getLastCommitHash() != com.google.protobuf.ByteString.EMPTY) { setLastCommitHash(other.getLastCommitHash()); } if (other.getDataHash() != com.google.protobuf.ByteString.EMPTY) { setDataHash(other.getDataHash()); } if (other.getValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { setValidatorsHash(other.getValidatorsHash()); } if (other.getNextValidatorsHash() != com.google.protobuf.ByteString.EMPTY) { setNextValidatorsHash(other.getNextValidatorsHash()); } if (other.getConsensusHash() != com.google.protobuf.ByteString.EMPTY) { setConsensusHash(other.getConsensusHash()); } if (other.getAppHash() != com.google.protobuf.ByteString.EMPTY) { setAppHash(other.getAppHash()); } if (other.getLastResultsHash() != com.google.protobuf.ByteString.EMPTY) { setLastResultsHash(other.getLastResultsHash()); } if (other.getEvidenceHash() != com.google.protobuf.ByteString.EMPTY) { setEvidenceHash(other.getEvidenceHash()); } if (other.getProposerAddress() != com.google.protobuf.ByteString.EMPTY) { setProposerAddress(other.getProposerAddress()); } 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.types.Types.Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.version.Types.Consensus version_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.version.Types.Consensus, tendermint.version.Types.Consensus.Builder, tendermint.version.Types.ConsensusOrBuilder> versionBuilder_; /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; * @return The version. */ public tendermint.version.Types.Consensus getVersion() { if (versionBuilder_ == null) { return version_ == null ? tendermint.version.Types.Consensus.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public Builder setVersion(tendermint.version.Types.Consensus value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); } else { versionBuilder_.setMessage(value); } return this; } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public Builder setVersion( tendermint.version.Types.Consensus.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public Builder mergeVersion(tendermint.version.Types.Consensus value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = tendermint.version.Types.Consensus.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } onChanged(); } else { versionBuilder_.mergeFrom(value); } return this; } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public Builder clearVersion() { if (versionBuilder_ == null) { version_ = null; onChanged(); } else { version_ = null; versionBuilder_ = null; } return this; } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public tendermint.version.Types.Consensus.Builder getVersionBuilder() { onChanged(); return getVersionFieldBuilder().getBuilder(); } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ public tendermint.version.Types.ConsensusOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { return version_ == null ? tendermint.version.Types.Consensus.getDefaultInstance() : version_; } } /** *
       * basic block info
       * 
* * .tendermint.version.Consensus version = 1 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.version.Types.Consensus, tendermint.version.Types.Consensus.Builder, tendermint.version.Types.ConsensusOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.version.Types.Consensus, tendermint.version.Types.Consensus.Builder, tendermint.version.Types.ConsensusOrBuilder>( getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } private java.lang.Object chainId_ = ""; /** * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; * @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 [(.gogoproto.customname) = "ChainID"]; * @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 [(.gogoproto.customname) = "ChainID"]; * @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 [(.gogoproto.customname) = "ChainID"]; * @return This builder for chaining. */ public Builder clearChainId() { chainId_ = getDefaultInstance().getChainId(); onChanged(); return this; } /** * string chain_id = 2 [(.gogoproto.customname) = "ChainID"]; * @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 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 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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { onChanged(); return getTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp time = 4 [(.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 = 4 [(.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 tendermint.types.Types.BlockID lastBlockId_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> lastBlockIdBuilder_; /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return Whether the lastBlockId field is set. */ public boolean hasLastBlockId() { return lastBlockIdBuilder_ != null || lastBlockId_ != null; } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; * @return The lastBlockId. */ public tendermint.types.Types.BlockID getLastBlockId() { if (lastBlockIdBuilder_ == null) { return lastBlockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : lastBlockId_; } else { return lastBlockIdBuilder_.getMessage(); } } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public Builder setLastBlockId(tendermint.types.Types.BlockID value) { if (lastBlockIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastBlockId_ = value; onChanged(); } else { lastBlockIdBuilder_.setMessage(value); } return this; } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public Builder setLastBlockId( tendermint.types.Types.BlockID.Builder builderForValue) { if (lastBlockIdBuilder_ == null) { lastBlockId_ = builderForValue.build(); onChanged(); } else { lastBlockIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public Builder mergeLastBlockId(tendermint.types.Types.BlockID value) { if (lastBlockIdBuilder_ == null) { if (lastBlockId_ != null) { lastBlockId_ = tendermint.types.Types.BlockID.newBuilder(lastBlockId_).mergeFrom(value).buildPartial(); } else { lastBlockId_ = value; } onChanged(); } else { lastBlockIdBuilder_.mergeFrom(value); } return this; } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public Builder clearLastBlockId() { if (lastBlockIdBuilder_ == null) { lastBlockId_ = null; onChanged(); } else { lastBlockId_ = null; lastBlockIdBuilder_ = null; } return this; } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.BlockID.Builder getLastBlockIdBuilder() { onChanged(); return getLastBlockIdFieldBuilder().getBuilder(); } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.BlockIDOrBuilder getLastBlockIdOrBuilder() { if (lastBlockIdBuilder_ != null) { return lastBlockIdBuilder_.getMessageOrBuilder(); } else { return lastBlockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : lastBlockId_; } } /** *
       * prev block info
       * 
* * .tendermint.types.BlockID last_block_id = 5 [(.gogoproto.nullable) = false]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> getLastBlockIdFieldBuilder() { if (lastBlockIdBuilder_ == null) { lastBlockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder>( getLastBlockId(), getParentForChildren(), isClean()); lastBlockId_ = null; } return lastBlockIdBuilder_; } private com.google.protobuf.ByteString lastCommitHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * hashes of block data
       * 
* * bytes last_commit_hash = 6; * @return The lastCommitHash. */ @java.lang.Override public com.google.protobuf.ByteString getLastCommitHash() { return lastCommitHash_; } /** *
       * hashes of block data
       * 
* * bytes last_commit_hash = 6; * @param value The lastCommitHash to set. * @return This builder for chaining. */ public Builder setLastCommitHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } lastCommitHash_ = value; onChanged(); return this; } /** *
       * hashes of block data
       * 
* * bytes last_commit_hash = 6; * @return This builder for chaining. */ public Builder clearLastCommitHash() { lastCommitHash_ = getDefaultInstance().getLastCommitHash(); onChanged(); return this; } private com.google.protobuf.ByteString dataHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * transactions
       * 
* * bytes data_hash = 7; * @return The dataHash. */ @java.lang.Override public com.google.protobuf.ByteString getDataHash() { return dataHash_; } /** *
       * transactions
       * 
* * bytes data_hash = 7; * @param value The dataHash to set. * @return This builder for chaining. */ public Builder setDataHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } dataHash_ = value; onChanged(); return this; } /** *
       * transactions
       * 
* * bytes data_hash = 7; * @return This builder for chaining. */ public Builder clearDataHash() { dataHash_ = getDefaultInstance().getDataHash(); onChanged(); return this; } private com.google.protobuf.ByteString validatorsHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * hashes from the app output from the prev block
       * 
* * bytes validators_hash = 8; * @return The validatorsHash. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorsHash() { return validatorsHash_; } /** *
       * hashes from the app output from the prev block
       * 
* * bytes validators_hash = 8; * @param value The validatorsHash to set. * @return This builder for chaining. */ public Builder setValidatorsHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validatorsHash_ = value; onChanged(); return this; } /** *
       * hashes from the app output from the prev block
       * 
* * bytes validators_hash = 8; * @return This builder for chaining. */ public Builder clearValidatorsHash() { validatorsHash_ = getDefaultInstance().getValidatorsHash(); onChanged(); return this; } private com.google.protobuf.ByteString nextValidatorsHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * validators for the next block
       * 
* * bytes next_validators_hash = 9; * @return The nextValidatorsHash. */ @java.lang.Override public com.google.protobuf.ByteString getNextValidatorsHash() { return nextValidatorsHash_; } /** *
       * validators for the next block
       * 
* * bytes next_validators_hash = 9; * @param value The nextValidatorsHash to set. * @return This builder for chaining. */ public Builder setNextValidatorsHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } nextValidatorsHash_ = value; onChanged(); return this; } /** *
       * validators for the next block
       * 
* * bytes next_validators_hash = 9; * @return This builder for chaining. */ public Builder clearNextValidatorsHash() { nextValidatorsHash_ = getDefaultInstance().getNextValidatorsHash(); onChanged(); return this; } private com.google.protobuf.ByteString consensusHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * consensus params for current block
       * 
* * bytes consensus_hash = 10; * @return The consensusHash. */ @java.lang.Override public com.google.protobuf.ByteString getConsensusHash() { return consensusHash_; } /** *
       * consensus params for current block
       * 
* * bytes consensus_hash = 10; * @param value The consensusHash to set. * @return This builder for chaining. */ public Builder setConsensusHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } consensusHash_ = value; onChanged(); return this; } /** *
       * consensus params for current block
       * 
* * bytes consensus_hash = 10; * @return This builder for chaining. */ public Builder clearConsensusHash() { consensusHash_ = getDefaultInstance().getConsensusHash(); onChanged(); return this; } private com.google.protobuf.ByteString appHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * state after txs from the previous block
       * 
* * bytes app_hash = 11; * @return The appHash. */ @java.lang.Override public com.google.protobuf.ByteString getAppHash() { return appHash_; } /** *
       * state after txs from the previous block
       * 
* * bytes app_hash = 11; * @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; } /** *
       * state after txs from the previous block
       * 
* * bytes app_hash = 11; * @return This builder for chaining. */ public Builder clearAppHash() { appHash_ = getDefaultInstance().getAppHash(); onChanged(); return this; } private com.google.protobuf.ByteString lastResultsHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * root hash of all results from the txs from the previous block
       * 
* * bytes last_results_hash = 12; * @return The lastResultsHash. */ @java.lang.Override public com.google.protobuf.ByteString getLastResultsHash() { return lastResultsHash_; } /** *
       * root hash of all results from the txs from the previous block
       * 
* * bytes last_results_hash = 12; * @param value The lastResultsHash to set. * @return This builder for chaining. */ public Builder setLastResultsHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } lastResultsHash_ = value; onChanged(); return this; } /** *
       * root hash of all results from the txs from the previous block
       * 
* * bytes last_results_hash = 12; * @return This builder for chaining. */ public Builder clearLastResultsHash() { lastResultsHash_ = getDefaultInstance().getLastResultsHash(); onChanged(); return this; } private com.google.protobuf.ByteString evidenceHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * consensus info
       * 
* * bytes evidence_hash = 13; * @return The evidenceHash. */ @java.lang.Override public com.google.protobuf.ByteString getEvidenceHash() { return evidenceHash_; } /** *
       * consensus info
       * 
* * bytes evidence_hash = 13; * @param value The evidenceHash to set. * @return This builder for chaining. */ public Builder setEvidenceHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } evidenceHash_ = value; onChanged(); return this; } /** *
       * consensus info
       * 
* * bytes evidence_hash = 13; * @return This builder for chaining. */ public Builder clearEvidenceHash() { evidenceHash_ = getDefaultInstance().getEvidenceHash(); onChanged(); return this; } private com.google.protobuf.ByteString proposerAddress_ = com.google.protobuf.ByteString.EMPTY; /** *
       * original proposer of the block
       * 
* * bytes proposer_address = 14; * @return The proposerAddress. */ @java.lang.Override public com.google.protobuf.ByteString getProposerAddress() { return proposerAddress_; } /** *
       * original proposer of the block
       * 
* * bytes proposer_address = 14; * @param value The proposerAddress to set. * @return This builder for chaining. */ public Builder setProposerAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } proposerAddress_ = value; onChanged(); return this; } /** *
       * original proposer of the block
       * 
* * bytes proposer_address = 14; * @return This builder for chaining. */ public Builder clearProposerAddress() { proposerAddress_ = getDefaultInstance().getProposerAddress(); 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.types.Header) } // @@protoc_insertion_point(class_scope:tendermint.types.Header) private static final tendermint.types.Types.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Header(); } public static tendermint.types.Types.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { @java.lang.Override public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Header(input, extensionRegistry); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } @java.lang.Override public tendermint.types.Types.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Data) com.google.protobuf.MessageOrBuilder { /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @return A list containing the txs. */ java.util.List getTxsList(); /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @return The count of txs. */ int getTxsCount(); /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @param index The index of the element to return. * @return The txs at the given index. */ com.google.protobuf.ByteString getTxs(int index); } /** *
   * Data contains the set of transactions included in the block
   * 
* * Protobuf type {@code tendermint.types.Data} */ public static final class Data extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Data) DataOrBuilder { private static final long serialVersionUID = 0L; // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Data() { txs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Data(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Data( 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)) { txs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } txs_.add(input.readBytes()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { txs_ = java.util.Collections.unmodifiableList(txs_); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Data.class, tendermint.types.Types.Data.Builder.class); } public static final int TXS_FIELD_NUMBER = 1; private java.util.List txs_; /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @return A list containing the txs. */ @java.lang.Override public java.util.List getTxsList() { return txs_; } /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @return The count of txs. */ public int getTxsCount() { return txs_.size(); } /** *
     * Txs that will be applied by state @ block.Height+1.
     * NOTE: not all txs here are valid.  We're just agreeing on the order first.
     * This means that block.AppHash does not include these txs.
     * 
* * repeated bytes txs = 1; * @param index The index of the element to return. * @return The txs at the given index. */ public com.google.protobuf.ByteString getTxs(int index) { return txs_.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 < txs_.size(); i++) { output.writeBytes(1, txs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < txs_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(txs_.get(i)); } size += dataSize; size += 1 * getTxsList().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.types.Types.Data)) { return super.equals(obj); } tendermint.types.Types.Data other = (tendermint.types.Types.Data) obj; if (!getTxsList() .equals(other.getTxsList())) 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 (getTxsCount() > 0) { hash = (37 * hash) + TXS_FIELD_NUMBER; hash = (53 * hash) + getTxsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Data parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Data parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Data parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Data 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.types.Types.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Data 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.types.Types.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Data 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.types.Types.Data 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; } /** *
     * Data contains the set of transactions included in the block
     * 
* * Protobuf type {@code tendermint.types.Data} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Data) tendermint.types.Types.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Data.class, tendermint.types.Types.Data.Builder.class); } // Construct using tendermint.types.Types.Data.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(); txs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Data_descriptor; } @java.lang.Override public tendermint.types.Types.Data getDefaultInstanceForType() { return tendermint.types.Types.Data.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Data build() { tendermint.types.Types.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Data buildPartial() { tendermint.types.Types.Data result = new tendermint.types.Types.Data(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { txs_ = java.util.Collections.unmodifiableList(txs_); bitField0_ = (bitField0_ & ~0x00000001); } result.txs_ = txs_; 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.types.Types.Data) { return mergeFrom((tendermint.types.Types.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Data other) { if (other == tendermint.types.Types.Data.getDefaultInstance()) return this; if (!other.txs_.isEmpty()) { if (txs_.isEmpty()) { txs_ = other.txs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTxsIsMutable(); txs_.addAll(other.txs_); } 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.types.Types.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Data) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List txs_ = java.util.Collections.emptyList(); private void ensureTxsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { txs_ = new java.util.ArrayList(txs_); bitField0_ |= 0x00000001; } } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @return A list containing the txs. */ public java.util.List getTxsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(txs_) : txs_; } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @return The count of txs. */ public int getTxsCount() { return txs_.size(); } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @param index The index of the element to return. * @return The txs at the given index. */ public com.google.protobuf.ByteString getTxs(int index) { return txs_.get(index); } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @param index The index to set the value at. * @param value The txs to set. * @return This builder for chaining. */ public Builder setTxs( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTxsIsMutable(); txs_.set(index, value); onChanged(); return this; } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @param value The txs to add. * @return This builder for chaining. */ public Builder addTxs(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTxsIsMutable(); txs_.add(value); onChanged(); return this; } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @param values The txs to add. * @return This builder for chaining. */ public Builder addAllTxs( java.lang.Iterable values) { ensureTxsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, txs_); onChanged(); return this; } /** *
       * Txs that will be applied by state @ block.Height+1.
       * NOTE: not all txs here are valid.  We're just agreeing on the order first.
       * This means that block.AppHash does not include these txs.
       * 
* * repeated bytes txs = 1; * @return This builder for chaining. */ public Builder clearTxs() { txs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tendermint.types.Data) } // @@protoc_insertion_point(class_scope:tendermint.types.Data) private static final tendermint.types.Types.Data DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Data(); } public static tendermint.types.Types.Data getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Data(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.types.Types.Data getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VoteOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Vote) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .tendermint.types.SignedMsgType type = 1; * @return The type. */ tendermint.types.Types.SignedMsgType getType(); /** * int64 height = 2; * @return The height. */ long getHeight(); /** * int32 round = 3; * @return The round. */ int getRound(); /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ boolean hasBlockId(); /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ tendermint.types.Types.BlockID getBlockId(); /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** * bytes validator_address = 6; * @return The validatorAddress. */ com.google.protobuf.ByteString getValidatorAddress(); /** * int32 validator_index = 7; * @return The validatorIndex. */ int getValidatorIndex(); /** * bytes signature = 8; * @return The signature. */ com.google.protobuf.ByteString getSignature(); } /** *
   * Vote represents a prevote, precommit, or commit vote from validators for
   * consensus.
   * 
* * Protobuf type {@code tendermint.types.Vote} */ public static final class Vote extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Vote) VoteOrBuilder { private static final long serialVersionUID = 0L; // Use Vote.newBuilder() to construct. private Vote(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Vote() { type_ = 0; validatorAddress_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Vote(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vote( 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(); type_ = rawValue; break; } case 16: { height_ = input.readInt64(); break; } case 24: { round_ = input.readInt32(); break; } case 34: { tendermint.types.Types.BlockID.Builder subBuilder = null; if (blockId_ != null) { subBuilder = blockId_.toBuilder(); } blockId_ = input.readMessage(tendermint.types.Types.BlockID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blockId_); blockId_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 50: { validatorAddress_ = input.readBytes(); break; } case 56: { validatorIndex_ = input.readInt32(); break; } case 66: { signature_ = 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.types.Types.internal_static_tendermint_types_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Vote.class, tendermint.types.Types.Vote.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .tendermint.types.SignedMsgType type = 1; * @return The type. */ @java.lang.Override public tendermint.types.Types.SignedMsgType getType() { @SuppressWarnings("deprecation") tendermint.types.Types.SignedMsgType result = tendermint.types.Types.SignedMsgType.valueOf(type_); return result == null ? tendermint.types.Types.SignedMsgType.UNRECOGNIZED : result; } public static final int HEIGHT_FIELD_NUMBER = 2; private long height_; /** * int64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int ROUND_FIELD_NUMBER = 3; private int round_; /** * int32 round = 3; * @return The round. */ @java.lang.Override public int getRound() { return round_; } public static final int BLOCK_ID_FIELD_NUMBER = 4; private tendermint.types.Types.BlockID blockId_; /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return blockId_ != null; } /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ @java.lang.Override public tendermint.types.Types.BlockID getBlockId() { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } /** *
     * zero if vote is nil.
     * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ @java.lang.Override public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { return getBlockId(); } public static final int TIMESTAMP_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 6; private com.google.protobuf.ByteString validatorAddress_; /** * bytes validator_address = 6; * @return The validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddress() { return validatorAddress_; } public static final int VALIDATOR_INDEX_FIELD_NUMBER = 7; private int validatorIndex_; /** * int32 validator_index = 7; * @return The validatorIndex. */ @java.lang.Override public int getValidatorIndex() { return validatorIndex_; } public static final int SIGNATURE_FIELD_NUMBER = 8; private com.google.protobuf.ByteString signature_; /** * bytes signature = 8; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } 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 (type_ != tendermint.types.Types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (height_ != 0L) { output.writeInt64(2, height_); } if (round_ != 0) { output.writeInt32(3, round_); } if (blockId_ != null) { output.writeMessage(4, getBlockId()); } if (timestamp_ != null) { output.writeMessage(5, getTimestamp()); } if (!validatorAddress_.isEmpty()) { output.writeBytes(6, validatorAddress_); } if (validatorIndex_ != 0) { output.writeInt32(7, validatorIndex_); } if (!signature_.isEmpty()) { output.writeBytes(8, signature_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != tendermint.types.Types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, height_); } if (round_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, round_); } if (blockId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBlockId()); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTimestamp()); } if (!validatorAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, validatorAddress_); } if (validatorIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, validatorIndex_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, signature_); } 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.types.Types.Vote)) { return super.equals(obj); } tendermint.types.Types.Vote other = (tendermint.types.Types.Vote) obj; if (type_ != other.type_) return false; if (getHeight() != other.getHeight()) return false; if (getRound() != other.getRound()) return false; if (hasBlockId() != other.hasBlockId()) return false; if (hasBlockId()) { if (!getBlockId() .equals(other.getBlockId())) return false; } if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getValidatorAddress() .equals(other.getValidatorAddress())) return false; if (getValidatorIndex() != other.getValidatorIndex()) return false; if (!getSignature() .equals(other.getSignature())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + ROUND_FIELD_NUMBER; hash = (53 * hash) + getRound(); if (hasBlockId()) { hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); } if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); hash = (37 * hash) + VALIDATOR_INDEX_FIELD_NUMBER; hash = (53 * hash) + getValidatorIndex(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Vote parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Vote parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Vote parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Vote parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Vote parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Vote parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Vote parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Vote 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.types.Types.Vote parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Vote 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.types.Types.Vote parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Vote 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.types.Types.Vote 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; } /** *
     * Vote represents a prevote, precommit, or commit vote from validators for
     * consensus.
     * 
* * Protobuf type {@code tendermint.types.Vote} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Vote) tendermint.types.Types.VoteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Vote_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Vote_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Vote.class, tendermint.types.Types.Vote.Builder.class); } // Construct using tendermint.types.Types.Vote.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(); type_ = 0; height_ = 0L; round_ = 0; if (blockIdBuilder_ == null) { blockId_ = null; } else { blockId_ = null; blockIdBuilder_ = null; } if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } validatorAddress_ = com.google.protobuf.ByteString.EMPTY; validatorIndex_ = 0; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Vote_descriptor; } @java.lang.Override public tendermint.types.Types.Vote getDefaultInstanceForType() { return tendermint.types.Types.Vote.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Vote build() { tendermint.types.Types.Vote result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Vote buildPartial() { tendermint.types.Types.Vote result = new tendermint.types.Types.Vote(this); result.type_ = type_; result.height_ = height_; result.round_ = round_; if (blockIdBuilder_ == null) { result.blockId_ = blockId_; } else { result.blockId_ = blockIdBuilder_.build(); } if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.validatorAddress_ = validatorAddress_; result.validatorIndex_ = validatorIndex_; result.signature_ = signature_; 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.types.Types.Vote) { return mergeFrom((tendermint.types.Types.Vote)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Vote other) { if (other == tendermint.types.Types.Vote.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.getRound() != 0) { setRound(other.getRound()); } if (other.hasBlockId()) { mergeBlockId(other.getBlockId()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getValidatorAddress() != com.google.protobuf.ByteString.EMPTY) { setValidatorAddress(other.getValidatorAddress()); } if (other.getValidatorIndex() != 0) { setValidatorIndex(other.getValidatorIndex()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } 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.types.Types.Vote parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Vote) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .tendermint.types.SignedMsgType type = 1; * @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.types.SignedMsgType type = 1; * @return The type. */ @java.lang.Override public tendermint.types.Types.SignedMsgType getType() { @SuppressWarnings("deprecation") tendermint.types.Types.SignedMsgType result = tendermint.types.Types.SignedMsgType.valueOf(type_); return result == null ? tendermint.types.Types.SignedMsgType.UNRECOGNIZED : result; } /** * .tendermint.types.SignedMsgType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(tendermint.types.Types.SignedMsgType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .tendermint.types.SignedMsgType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long height_ ; /** * int64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * int64 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** * int64 height = 2; * @return This builder for chaining. */ public Builder clearHeight() { height_ = 0L; onChanged(); return this; } private int round_ ; /** * int32 round = 3; * @return The round. */ @java.lang.Override public int getRound() { return round_; } /** * int32 round = 3; * @param value The round to set. * @return This builder for chaining. */ public Builder setRound(int value) { round_ = value; onChanged(); return this; } /** * int32 round = 3; * @return This builder for chaining. */ public Builder clearRound() { round_ = 0; onChanged(); return this; } private tendermint.types.Types.BlockID blockId_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> blockIdBuilder_; /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ public boolean hasBlockId() { return blockIdBuilder_ != null || blockId_ != null; } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ public tendermint.types.Types.BlockID getBlockId() { if (blockIdBuilder_ == null) { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } else { return blockIdBuilder_.getMessage(); } } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockId_ = value; onChanged(); } else { blockIdBuilder_.setMessage(value); } return this; } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId( tendermint.types.Types.BlockID.Builder builderForValue) { if (blockIdBuilder_ == null) { blockId_ = builderForValue.build(); onChanged(); } else { blockIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder mergeBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (blockId_ != null) { blockId_ = tendermint.types.Types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); } else { blockId_ = value; } onChanged(); } else { blockIdBuilder_.mergeFrom(value); } return this; } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder clearBlockId() { if (blockIdBuilder_ == null) { blockId_ = null; onChanged(); } else { blockId_ = null; blockIdBuilder_ = null; } return this; } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockID.Builder getBlockIdBuilder() { onChanged(); return getBlockIdFieldBuilder().getBuilder(); } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { if (blockIdBuilder_ != null) { return blockIdBuilder_.getMessageOrBuilder(); } else { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } } /** *
       * zero if vote is nil.
       * 
* * .tendermint.types.BlockID block_id = 4 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> getBlockIdFieldBuilder() { if (blockIdBuilder_ == null) { blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder>( getBlockId(), getParentForChildren(), isClean()); blockId_ = null; } return blockIdBuilder_; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString validatorAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validator_address = 6; * @return The validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddress() { return validatorAddress_; } /** * bytes validator_address = 6; * @param value The validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * bytes validator_address = 6; * @return This builder for chaining. */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } private int validatorIndex_ ; /** * int32 validator_index = 7; * @return The validatorIndex. */ @java.lang.Override public int getValidatorIndex() { return validatorIndex_; } /** * int32 validator_index = 7; * @param value The validatorIndex to set. * @return This builder for chaining. */ public Builder setValidatorIndex(int value) { validatorIndex_ = value; onChanged(); return this; } /** * int32 validator_index = 7; * @return This builder for chaining. */ public Builder clearValidatorIndex() { validatorIndex_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 8; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 8; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 8; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); 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.types.Vote) } // @@protoc_insertion_point(class_scope:tendermint.types.Vote) private static final tendermint.types.Types.Vote DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Vote(); } public static tendermint.types.Types.Vote getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Vote parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Vote(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.types.Types.Vote getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Commit) com.google.protobuf.MessageOrBuilder { /** * int64 height = 1; * @return The height. */ long getHeight(); /** * int32 round = 2; * @return The round. */ int getRound(); /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ boolean hasBlockId(); /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ tendermint.types.Types.BlockID getBlockId(); /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder(); /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ java.util.List getSignaturesList(); /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ tendermint.types.Types.CommitSig getSignatures(int index); /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ int getSignaturesCount(); /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ java.util.List getSignaturesOrBuilderList(); /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ tendermint.types.Types.CommitSigOrBuilder getSignaturesOrBuilder( int index); } /** *
   * Commit contains the evidence that a block was committed by a set of validators.
   * 
* * Protobuf type {@code tendermint.types.Commit} */ public static final class Commit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Commit) CommitOrBuilder { private static final long serialVersionUID = 0L; // Use Commit.newBuilder() to construct. private Commit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Commit() { signatures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Commit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Commit( 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: { height_ = input.readInt64(); break; } case 16: { round_ = input.readInt32(); break; } case 26: { tendermint.types.Types.BlockID.Builder subBuilder = null; if (blockId_ != null) { subBuilder = blockId_.toBuilder(); } blockId_ = input.readMessage(tendermint.types.Types.BlockID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blockId_); blockId_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } signatures_.add( input.readMessage(tendermint.types.Types.CommitSig.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)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Commit.class, tendermint.types.Types.Commit.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_; } public static final int ROUND_FIELD_NUMBER = 2; private int round_; /** * int32 round = 2; * @return The round. */ @java.lang.Override public int getRound() { return round_; } public static final int BLOCK_ID_FIELD_NUMBER = 3; private tendermint.types.Types.BlockID blockId_; /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return blockId_ != null; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ @java.lang.Override public tendermint.types.Types.BlockID getBlockId() { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ @java.lang.Override public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { return getBlockId(); } public static final int SIGNATURES_FIELD_NUMBER = 4; private java.util.List signatures_; /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getSignaturesList() { return signatures_; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public java.util.List getSignaturesOrBuilderList() { return signatures_; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public int getSignaturesCount() { return signatures_.size(); } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.types.Types.CommitSig getSignatures(int index) { return signatures_.get(index); } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.types.Types.CommitSigOrBuilder getSignaturesOrBuilder( int index) { return signatures_.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 (height_ != 0L) { output.writeInt64(1, height_); } if (round_ != 0) { output.writeInt32(2, round_); } if (blockId_ != null) { output.writeMessage(3, getBlockId()); } for (int i = 0; i < signatures_.size(); i++) { output.writeMessage(4, signatures_.get(i)); } 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_); } if (round_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, round_); } if (blockId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBlockId()); } for (int i = 0; i < signatures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, signatures_.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.types.Types.Commit)) { return super.equals(obj); } tendermint.types.Types.Commit other = (tendermint.types.Types.Commit) obj; if (getHeight() != other.getHeight()) return false; if (getRound() != other.getRound()) return false; if (hasBlockId() != other.hasBlockId()) return false; if (hasBlockId()) { if (!getBlockId() .equals(other.getBlockId())) return false; } if (!getSignaturesList() .equals(other.getSignaturesList())) 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) + ROUND_FIELD_NUMBER; hash = (53 * hash) + getRound(); if (hasBlockId()) { hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); } if (getSignaturesCount() > 0) { hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; hash = (53 * hash) + getSignaturesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Commit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Commit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Commit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Commit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Commit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Commit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Commit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Commit 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.types.Types.Commit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Commit 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.types.Types.Commit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Commit 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.types.Types.Commit 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; } /** *
     * Commit contains the evidence that a block was committed by a set of validators.
     * 
* * Protobuf type {@code tendermint.types.Commit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Commit) tendermint.types.Types.CommitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Commit_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Commit.class, tendermint.types.Types.Commit.Builder.class); } // Construct using tendermint.types.Types.Commit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSignaturesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); height_ = 0L; round_ = 0; if (blockIdBuilder_ == null) { blockId_ = null; } else { blockId_ = null; blockIdBuilder_ = null; } if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { signaturesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Commit_descriptor; } @java.lang.Override public tendermint.types.Types.Commit getDefaultInstanceForType() { return tendermint.types.Types.Commit.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Commit build() { tendermint.types.Types.Commit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Commit buildPartial() { tendermint.types.Types.Commit result = new tendermint.types.Types.Commit(this); int from_bitField0_ = bitField0_; result.height_ = height_; result.round_ = round_; if (blockIdBuilder_ == null) { result.blockId_ = blockId_; } else { result.blockId_ = blockIdBuilder_.build(); } if (signaturesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; } else { result.signatures_ = signaturesBuilder_.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.types.Types.Commit) { return mergeFrom((tendermint.types.Types.Commit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Commit other) { if (other == tendermint.types.Types.Commit.getDefaultInstance()) return this; if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.getRound() != 0) { setRound(other.getRound()); } if (other.hasBlockId()) { mergeBlockId(other.getBlockId()); } if (signaturesBuilder_ == null) { if (!other.signatures_.isEmpty()) { if (signatures_.isEmpty()) { signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSignaturesIsMutable(); signatures_.addAll(other.signatures_); } onChanged(); } } else { if (!other.signatures_.isEmpty()) { if (signaturesBuilder_.isEmpty()) { signaturesBuilder_.dispose(); signaturesBuilder_ = null; signatures_ = other.signatures_; bitField0_ = (bitField0_ & ~0x00000001); signaturesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSignaturesFieldBuilder() : null; } else { signaturesBuilder_.addAllMessages(other.signatures_); } } } 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.types.Types.Commit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Commit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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; } private int round_ ; /** * int32 round = 2; * @return The round. */ @java.lang.Override public int getRound() { return round_; } /** * int32 round = 2; * @param value The round to set. * @return This builder for chaining. */ public Builder setRound(int value) { round_ = value; onChanged(); return this; } /** * int32 round = 2; * @return This builder for chaining. */ public Builder clearRound() { round_ = 0; onChanged(); return this; } private tendermint.types.Types.BlockID blockId_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> blockIdBuilder_; /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ public boolean hasBlockId() { return blockIdBuilder_ != null || blockId_ != null; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ public tendermint.types.Types.BlockID getBlockId() { if (blockIdBuilder_ == null) { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } else { return blockIdBuilder_.getMessage(); } } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockId_ = value; onChanged(); } else { blockIdBuilder_.setMessage(value); } return this; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId( tendermint.types.Types.BlockID.Builder builderForValue) { if (blockIdBuilder_ == null) { blockId_ = builderForValue.build(); onChanged(); } else { blockIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder mergeBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (blockId_ != null) { blockId_ = tendermint.types.Types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); } else { blockId_ = value; } onChanged(); } else { blockIdBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder clearBlockId() { if (blockIdBuilder_ == null) { blockId_ = null; onChanged(); } else { blockId_ = null; blockIdBuilder_ = null; } return this; } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockID.Builder getBlockIdBuilder() { onChanged(); return getBlockIdFieldBuilder().getBuilder(); } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { if (blockIdBuilder_ != null) { return blockIdBuilder_.getMessageOrBuilder(); } else { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } } /** * .tendermint.types.BlockID block_id = 3 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> getBlockIdFieldBuilder() { if (blockIdBuilder_ == null) { blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder>( getBlockId(), getParentForChildren(), isClean()); blockId_ = null; } return blockIdBuilder_; } private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.Types.CommitSig, tendermint.types.Types.CommitSig.Builder, tendermint.types.Types.CommitSigOrBuilder> signaturesBuilder_; /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getSignaturesList() { if (signaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(signatures_); } else { return signaturesBuilder_.getMessageList(); } } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public int getSignaturesCount() { if (signaturesBuilder_ == null) { return signatures_.size(); } else { return signaturesBuilder_.getCount(); } } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.CommitSig getSignatures(int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessage(index); } } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder setSignatures( int index, tendermint.types.Types.CommitSig value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.set(index, value); onChanged(); } else { signaturesBuilder_.setMessage(index, value); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder setSignatures( int index, tendermint.types.Types.CommitSig.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.set(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder addSignatures(tendermint.types.Types.CommitSig value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(value); onChanged(); } else { signaturesBuilder_.addMessage(value); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder addSignatures( int index, tendermint.types.Types.CommitSig value) { if (signaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSignaturesIsMutable(); signatures_.add(index, value); onChanged(); } else { signaturesBuilder_.addMessage(index, value); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder addSignatures( tendermint.types.Types.CommitSig.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder addSignatures( int index, tendermint.types.Types.CommitSig.Builder builderForValue) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.add(index, builderForValue.build()); onChanged(); } else { signaturesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder addAllSignatures( java.lang.Iterable values) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, signatures_); onChanged(); } else { signaturesBuilder_.addAllMessages(values); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder clearSignatures() { if (signaturesBuilder_ == null) { signatures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { signaturesBuilder_.clear(); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public Builder removeSignatures(int index) { if (signaturesBuilder_ == null) { ensureSignaturesIsMutable(); signatures_.remove(index); onChanged(); } else { signaturesBuilder_.remove(index); } return this; } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.CommitSig.Builder getSignaturesBuilder( int index) { return getSignaturesFieldBuilder().getBuilder(index); } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.CommitSigOrBuilder getSignaturesOrBuilder( int index) { if (signaturesBuilder_ == null) { return signatures_.get(index); } else { return signaturesBuilder_.getMessageOrBuilder(index); } } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getSignaturesOrBuilderList() { if (signaturesBuilder_ != null) { return signaturesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(signatures_); } } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.CommitSig.Builder addSignaturesBuilder() { return getSignaturesFieldBuilder().addBuilder( tendermint.types.Types.CommitSig.getDefaultInstance()); } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.CommitSig.Builder addSignaturesBuilder( int index) { return getSignaturesFieldBuilder().addBuilder( index, tendermint.types.Types.CommitSig.getDefaultInstance()); } /** * repeated .tendermint.types.CommitSig signatures = 4 [(.gogoproto.nullable) = false]; */ public java.util.List getSignaturesBuilderList() { return getSignaturesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.Types.CommitSig, tendermint.types.Types.CommitSig.Builder, tendermint.types.Types.CommitSigOrBuilder> getSignaturesFieldBuilder() { if (signaturesBuilder_ == null) { signaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tendermint.types.Types.CommitSig, tendermint.types.Types.CommitSig.Builder, tendermint.types.Types.CommitSigOrBuilder>( signatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); signatures_ = null; } return signaturesBuilder_; } @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.types.Commit) } // @@protoc_insertion_point(class_scope:tendermint.types.Commit) private static final tendermint.types.Types.Commit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Commit(); } public static tendermint.types.Types.Commit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Commit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Commit(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.types.Types.Commit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitSigOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.CommitSig) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The enum numeric value on the wire for blockIdFlag. */ int getBlockIdFlagValue(); /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The blockIdFlag. */ tendermint.types.Types.BlockIDFlag getBlockIdFlag(); /** * bytes validator_address = 2; * @return The validatorAddress. */ com.google.protobuf.ByteString getValidatorAddress(); /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** * bytes signature = 4; * @return The signature. */ com.google.protobuf.ByteString getSignature(); } /** *
   * CommitSig is a part of the Vote included in a Commit.
   * 
* * Protobuf type {@code tendermint.types.CommitSig} */ public static final class CommitSig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.CommitSig) CommitSigOrBuilder { private static final long serialVersionUID = 0L; // Use CommitSig.newBuilder() to construct. private CommitSig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitSig() { blockIdFlag_ = 0; validatorAddress_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommitSig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitSig( 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(); blockIdFlag_ = rawValue; break; } case 18: { validatorAddress_ = input.readBytes(); break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 34: { signature_ = 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.types.Types.internal_static_tendermint_types_CommitSig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_CommitSig_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.CommitSig.class, tendermint.types.Types.CommitSig.Builder.class); } public static final int BLOCK_ID_FLAG_FIELD_NUMBER = 1; private int blockIdFlag_; /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The enum numeric value on the wire for blockIdFlag. */ @java.lang.Override public int getBlockIdFlagValue() { return blockIdFlag_; } /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The blockIdFlag. */ @java.lang.Override public tendermint.types.Types.BlockIDFlag getBlockIdFlag() { @SuppressWarnings("deprecation") tendermint.types.Types.BlockIDFlag result = tendermint.types.Types.BlockIDFlag.valueOf(blockIdFlag_); return result == null ? tendermint.types.Types.BlockIDFlag.UNRECOGNIZED : result; } public static final int VALIDATOR_ADDRESS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString validatorAddress_; /** * bytes validator_address = 2; * @return The validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddress() { return validatorAddress_; } public static final int TIMESTAMP_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int SIGNATURE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString signature_; /** * bytes signature = 4; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } 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 (blockIdFlag_ != tendermint.types.Types.BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN.getNumber()) { output.writeEnum(1, blockIdFlag_); } if (!validatorAddress_.isEmpty()) { output.writeBytes(2, validatorAddress_); } if (timestamp_ != null) { output.writeMessage(3, getTimestamp()); } if (!signature_.isEmpty()) { output.writeBytes(4, signature_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (blockIdFlag_ != tendermint.types.Types.BlockIDFlag.BLOCK_ID_FLAG_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, blockIdFlag_); } if (!validatorAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, validatorAddress_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTimestamp()); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, signature_); } 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.types.Types.CommitSig)) { return super.equals(obj); } tendermint.types.Types.CommitSig other = (tendermint.types.Types.CommitSig) obj; if (blockIdFlag_ != other.blockIdFlag_) return false; if (!getValidatorAddress() .equals(other.getValidatorAddress())) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getSignature() .equals(other.getSignature())) 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) + BLOCK_ID_FLAG_FIELD_NUMBER; hash = (53 * hash) + blockIdFlag_; hash = (37 * hash) + VALIDATOR_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getValidatorAddress().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.CommitSig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.CommitSig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.CommitSig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.CommitSig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.CommitSig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.CommitSig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.CommitSig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.CommitSig 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.types.Types.CommitSig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.CommitSig 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.types.Types.CommitSig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.CommitSig 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.types.Types.CommitSig 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; } /** *
     * CommitSig is a part of the Vote included in a Commit.
     * 
* * Protobuf type {@code tendermint.types.CommitSig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.CommitSig) tendermint.types.Types.CommitSigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_CommitSig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_CommitSig_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.CommitSig.class, tendermint.types.Types.CommitSig.Builder.class); } // Construct using tendermint.types.Types.CommitSig.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(); blockIdFlag_ = 0; validatorAddress_ = com.google.protobuf.ByteString.EMPTY; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_CommitSig_descriptor; } @java.lang.Override public tendermint.types.Types.CommitSig getDefaultInstanceForType() { return tendermint.types.Types.CommitSig.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.CommitSig build() { tendermint.types.Types.CommitSig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.CommitSig buildPartial() { tendermint.types.Types.CommitSig result = new tendermint.types.Types.CommitSig(this); result.blockIdFlag_ = blockIdFlag_; result.validatorAddress_ = validatorAddress_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.signature_ = signature_; 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.types.Types.CommitSig) { return mergeFrom((tendermint.types.Types.CommitSig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.CommitSig other) { if (other == tendermint.types.Types.CommitSig.getDefaultInstance()) return this; if (other.blockIdFlag_ != 0) { setBlockIdFlagValue(other.getBlockIdFlagValue()); } if (other.getValidatorAddress() != com.google.protobuf.ByteString.EMPTY) { setValidatorAddress(other.getValidatorAddress()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } 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.types.Types.CommitSig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.CommitSig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int blockIdFlag_ = 0; /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The enum numeric value on the wire for blockIdFlag. */ @java.lang.Override public int getBlockIdFlagValue() { return blockIdFlag_; } /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @param value The enum numeric value on the wire for blockIdFlag to set. * @return This builder for chaining. */ public Builder setBlockIdFlagValue(int value) { blockIdFlag_ = value; onChanged(); return this; } /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return The blockIdFlag. */ @java.lang.Override public tendermint.types.Types.BlockIDFlag getBlockIdFlag() { @SuppressWarnings("deprecation") tendermint.types.Types.BlockIDFlag result = tendermint.types.Types.BlockIDFlag.valueOf(blockIdFlag_); return result == null ? tendermint.types.Types.BlockIDFlag.UNRECOGNIZED : result; } /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @param value The blockIdFlag to set. * @return This builder for chaining. */ public Builder setBlockIdFlag(tendermint.types.Types.BlockIDFlag value) { if (value == null) { throw new NullPointerException(); } blockIdFlag_ = value.getNumber(); onChanged(); return this; } /** * .tendermint.types.BlockIDFlag block_id_flag = 1; * @return This builder for chaining. */ public Builder clearBlockIdFlag() { blockIdFlag_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString validatorAddress_ = com.google.protobuf.ByteString.EMPTY; /** * bytes validator_address = 2; * @return The validatorAddress. */ @java.lang.Override public com.google.protobuf.ByteString getValidatorAddress() { return validatorAddress_; } /** * bytes validator_address = 2; * @param value The validatorAddress to set. * @return This builder for chaining. */ public Builder setValidatorAddress(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } validatorAddress_ = value; onChanged(); return this; } /** * bytes validator_address = 2; * @return This builder for chaining. */ public Builder clearValidatorAddress() { validatorAddress_ = getDefaultInstance().getValidatorAddress(); onChanged(); return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 4; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 4; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 4; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); 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.types.CommitSig) } // @@protoc_insertion_point(class_scope:tendermint.types.CommitSig) private static final tendermint.types.Types.CommitSig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.CommitSig(); } public static tendermint.types.Types.CommitSig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommitSig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitSig(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.types.Types.CommitSig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.Proposal) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .tendermint.types.SignedMsgType type = 1; * @return The type. */ tendermint.types.Types.SignedMsgType getType(); /** * int64 height = 2; * @return The height. */ long getHeight(); /** * int32 round = 3; * @return The round. */ int getRound(); /** * int32 pol_round = 4; * @return The polRound. */ int getPolRound(); /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ boolean hasBlockId(); /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ tendermint.types.Types.BlockID getBlockId(); /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder(); /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** * bytes signature = 7; * @return The signature. */ com.google.protobuf.ByteString getSignature(); } /** * Protobuf type {@code tendermint.types.Proposal} */ public static final class Proposal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.Proposal) ProposalOrBuilder { private static final long serialVersionUID = 0L; // Use Proposal.newBuilder() to construct. private Proposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Proposal() { type_ = 0; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Proposal(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Proposal( 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(); type_ = rawValue; break; } case 16: { height_ = input.readInt64(); break; } case 24: { round_ = input.readInt32(); break; } case 32: { polRound_ = input.readInt32(); break; } case 42: { tendermint.types.Types.BlockID.Builder subBuilder = null; if (blockId_ != null) { subBuilder = blockId_.toBuilder(); } blockId_ = input.readMessage(tendermint.types.Types.BlockID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blockId_); blockId_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 58: { signature_ = 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.types.Types.internal_static_tendermint_types_Proposal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Proposal.class, tendermint.types.Types.Proposal.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .tendermint.types.SignedMsgType type = 1; * @return The type. */ @java.lang.Override public tendermint.types.Types.SignedMsgType getType() { @SuppressWarnings("deprecation") tendermint.types.Types.SignedMsgType result = tendermint.types.Types.SignedMsgType.valueOf(type_); return result == null ? tendermint.types.Types.SignedMsgType.UNRECOGNIZED : result; } public static final int HEIGHT_FIELD_NUMBER = 2; private long height_; /** * int64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } public static final int ROUND_FIELD_NUMBER = 3; private int round_; /** * int32 round = 3; * @return The round. */ @java.lang.Override public int getRound() { return round_; } public static final int POL_ROUND_FIELD_NUMBER = 4; private int polRound_; /** * int32 pol_round = 4; * @return The polRound. */ @java.lang.Override public int getPolRound() { return polRound_; } public static final int BLOCK_ID_FIELD_NUMBER = 5; private tendermint.types.Types.BlockID blockId_; /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return blockId_ != null; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ @java.lang.Override public tendermint.types.Types.BlockID getBlockId() { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ @java.lang.Override public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { return getBlockId(); } public static final int TIMESTAMP_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int SIGNATURE_FIELD_NUMBER = 7; private com.google.protobuf.ByteString signature_; /** * bytes signature = 7; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } 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 (type_ != tendermint.types.Types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { output.writeEnum(1, type_); } if (height_ != 0L) { output.writeInt64(2, height_); } if (round_ != 0) { output.writeInt32(3, round_); } if (polRound_ != 0) { output.writeInt32(4, polRound_); } if (blockId_ != null) { output.writeMessage(5, getBlockId()); } if (timestamp_ != null) { output.writeMessage(6, getTimestamp()); } if (!signature_.isEmpty()) { output.writeBytes(7, signature_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != tendermint.types.Types.SignedMsgType.SIGNED_MSG_TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (height_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, height_); } if (round_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, round_); } if (polRound_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, polRound_); } if (blockId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getBlockId()); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTimestamp()); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, signature_); } 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.types.Types.Proposal)) { return super.equals(obj); } tendermint.types.Types.Proposal other = (tendermint.types.Types.Proposal) obj; if (type_ != other.type_) return false; if (getHeight() != other.getHeight()) return false; if (getRound() != other.getRound()) return false; if (getPolRound() != other.getPolRound()) return false; if (hasBlockId() != other.hasBlockId()) return false; if (hasBlockId()) { if (!getBlockId() .equals(other.getBlockId())) return false; } if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getSignature() .equals(other.getSignature())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHeight()); hash = (37 * hash) + ROUND_FIELD_NUMBER; hash = (53 * hash) + getRound(); hash = (37 * hash) + POL_ROUND_FIELD_NUMBER; hash = (53 * hash) + getPolRound(); if (hasBlockId()) { hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); } if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.Proposal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Proposal parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Proposal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Proposal parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Proposal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.Proposal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.Proposal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Proposal 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.types.Types.Proposal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.Proposal 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.types.Types.Proposal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.Proposal 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.types.Types.Proposal 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.types.Proposal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.Proposal) tendermint.types.Types.ProposalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_Proposal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_Proposal_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.Proposal.class, tendermint.types.Types.Proposal.Builder.class); } // Construct using tendermint.types.Types.Proposal.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(); type_ = 0; height_ = 0L; round_ = 0; polRound_ = 0; if (blockIdBuilder_ == null) { blockId_ = null; } else { blockId_ = null; blockIdBuilder_ = null; } if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_Proposal_descriptor; } @java.lang.Override public tendermint.types.Types.Proposal getDefaultInstanceForType() { return tendermint.types.Types.Proposal.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.Proposal build() { tendermint.types.Types.Proposal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.Proposal buildPartial() { tendermint.types.Types.Proposal result = new tendermint.types.Types.Proposal(this); result.type_ = type_; result.height_ = height_; result.round_ = round_; result.polRound_ = polRound_; if (blockIdBuilder_ == null) { result.blockId_ = blockId_; } else { result.blockId_ = blockIdBuilder_.build(); } if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.signature_ = signature_; 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.types.Types.Proposal) { return mergeFrom((tendermint.types.Types.Proposal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.Proposal other) { if (other == tendermint.types.Types.Proposal.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getHeight() != 0L) { setHeight(other.getHeight()); } if (other.getRound() != 0) { setRound(other.getRound()); } if (other.getPolRound() != 0) { setPolRound(other.getPolRound()); } if (other.hasBlockId()) { mergeBlockId(other.getBlockId()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } 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.types.Types.Proposal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.Proposal) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .tendermint.types.SignedMsgType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .tendermint.types.SignedMsgType type = 1; * @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.types.SignedMsgType type = 1; * @return The type. */ @java.lang.Override public tendermint.types.Types.SignedMsgType getType() { @SuppressWarnings("deprecation") tendermint.types.Types.SignedMsgType result = tendermint.types.Types.SignedMsgType.valueOf(type_); return result == null ? tendermint.types.Types.SignedMsgType.UNRECOGNIZED : result; } /** * .tendermint.types.SignedMsgType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(tendermint.types.Types.SignedMsgType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .tendermint.types.SignedMsgType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long height_ ; /** * int64 height = 2; * @return The height. */ @java.lang.Override public long getHeight() { return height_; } /** * int64 height = 2; * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(long value) { height_ = value; onChanged(); return this; } /** * int64 height = 2; * @return This builder for chaining. */ public Builder clearHeight() { height_ = 0L; onChanged(); return this; } private int round_ ; /** * int32 round = 3; * @return The round. */ @java.lang.Override public int getRound() { return round_; } /** * int32 round = 3; * @param value The round to set. * @return This builder for chaining. */ public Builder setRound(int value) { round_ = value; onChanged(); return this; } /** * int32 round = 3; * @return This builder for chaining. */ public Builder clearRound() { round_ = 0; onChanged(); return this; } private int polRound_ ; /** * int32 pol_round = 4; * @return The polRound. */ @java.lang.Override public int getPolRound() { return polRound_; } /** * int32 pol_round = 4; * @param value The polRound to set. * @return This builder for chaining. */ public Builder setPolRound(int value) { polRound_ = value; onChanged(); return this; } /** * int32 pol_round = 4; * @return This builder for chaining. */ public Builder clearPolRound() { polRound_ = 0; onChanged(); return this; } private tendermint.types.Types.BlockID blockId_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> blockIdBuilder_; /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ public boolean hasBlockId() { return blockIdBuilder_ != null || blockId_ != null; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ public tendermint.types.Types.BlockID getBlockId() { if (blockIdBuilder_ == null) { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } else { return blockIdBuilder_.getMessage(); } } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockId_ = value; onChanged(); } else { blockIdBuilder_.setMessage(value); } return this; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId( tendermint.types.Types.BlockID.Builder builderForValue) { if (blockIdBuilder_ == null) { blockId_ = builderForValue.build(); onChanged(); } else { blockIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder mergeBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (blockId_ != null) { blockId_ = tendermint.types.Types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); } else { blockId_ = value; } onChanged(); } else { blockIdBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder clearBlockId() { if (blockIdBuilder_ == null) { blockId_ = null; onChanged(); } else { blockId_ = null; blockIdBuilder_ = null; } return this; } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockID.Builder getBlockIdBuilder() { onChanged(); return getBlockIdFieldBuilder().getBuilder(); } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { if (blockIdBuilder_ != null) { return blockIdBuilder_.getMessageOrBuilder(); } else { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } } /** * .tendermint.types.BlockID block_id = 5 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> getBlockIdFieldBuilder() { if (blockIdBuilder_ == null) { blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder>( getBlockId(), getParentForChildren(), isClean()); blockId_ = null; } return blockIdBuilder_; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 6 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 7; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 7; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 7; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); 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.types.Proposal) } // @@protoc_insertion_point(class_scope:tendermint.types.Proposal) private static final tendermint.types.Types.Proposal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.Proposal(); } public static tendermint.types.Types.Proposal getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Proposal parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Proposal(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.types.Types.Proposal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignedHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.SignedHeader) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.Header header = 1; * @return Whether the header field is set. */ boolean hasHeader(); /** * .tendermint.types.Header header = 1; * @return The header. */ tendermint.types.Types.Header getHeader(); /** * .tendermint.types.Header header = 1; */ tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder(); /** * .tendermint.types.Commit commit = 2; * @return Whether the commit field is set. */ boolean hasCommit(); /** * .tendermint.types.Commit commit = 2; * @return The commit. */ tendermint.types.Types.Commit getCommit(); /** * .tendermint.types.Commit commit = 2; */ tendermint.types.Types.CommitOrBuilder getCommitOrBuilder(); } /** * Protobuf type {@code tendermint.types.SignedHeader} */ public static final class SignedHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.SignedHeader) SignedHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use SignedHeader.newBuilder() to construct. private SignedHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignedHeader() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignedHeader(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SignedHeader( 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.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 18: { tendermint.types.Types.Commit.Builder subBuilder = null; if (commit_ != null) { subBuilder = commit_.toBuilder(); } commit_ = input.readMessage(tendermint.types.Types.Commit.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commit_); commit_ = 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.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.SignedHeader.class, tendermint.types.Types.SignedHeader.Builder.class); } public static final int HEADER_FIELD_NUMBER = 1; private tendermint.types.Types.Header header_; /** * .tendermint.types.Header header = 1; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return header_ != null; } /** * .tendermint.types.Header header = 1; * @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 = 1; */ @java.lang.Override public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int COMMIT_FIELD_NUMBER = 2; private tendermint.types.Types.Commit commit_; /** * .tendermint.types.Commit commit = 2; * @return Whether the commit field is set. */ @java.lang.Override public boolean hasCommit() { return commit_ != null; } /** * .tendermint.types.Commit commit = 2; * @return The commit. */ @java.lang.Override public tendermint.types.Types.Commit getCommit() { return commit_ == null ? tendermint.types.Types.Commit.getDefaultInstance() : commit_; } /** * .tendermint.types.Commit commit = 2; */ @java.lang.Override public tendermint.types.Types.CommitOrBuilder getCommitOrBuilder() { return getCommit(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (commit_ != null) { output.writeMessage(2, getCommit()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (commit_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCommit()); } 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.types.Types.SignedHeader)) { return super.equals(obj); } tendermint.types.Types.SignedHeader other = (tendermint.types.Types.SignedHeader) obj; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (hasCommit() != other.hasCommit()) return false; if (hasCommit()) { if (!getCommit() .equals(other.getCommit())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasCommit()) { hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + getCommit().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.SignedHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.SignedHeader parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.SignedHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.SignedHeader parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.SignedHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.SignedHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.SignedHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.SignedHeader 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.types.Types.SignedHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.SignedHeader 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.types.Types.SignedHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.SignedHeader 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.types.Types.SignedHeader 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.types.SignedHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.SignedHeader) tendermint.types.Types.SignedHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.SignedHeader.class, tendermint.types.Types.SignedHeader.Builder.class); } // Construct using tendermint.types.Types.SignedHeader.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 (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (commitBuilder_ == null) { commit_ = null; } else { commit_ = null; commitBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_SignedHeader_descriptor; } @java.lang.Override public tendermint.types.Types.SignedHeader getDefaultInstanceForType() { return tendermint.types.Types.SignedHeader.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.SignedHeader build() { tendermint.types.Types.SignedHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.SignedHeader buildPartial() { tendermint.types.Types.SignedHeader result = new tendermint.types.Types.SignedHeader(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (commitBuilder_ == null) { result.commit_ = commit_; } else { result.commit_ = commitBuilder_.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.types.Types.SignedHeader) { return mergeFrom((tendermint.types.Types.SignedHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.SignedHeader other) { if (other == tendermint.types.Types.SignedHeader.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasCommit()) { mergeCommit(other.getCommit()); } 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.types.Types.SignedHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.SignedHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 1; * @return Whether the header field is set. */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .tendermint.types.Header header = 1; * @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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .tendermint.types.Header header = 1; */ public tendermint.types.Types.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .tendermint.types.Header header = 1; */ 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 = 1; */ 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.types.Types.Commit commit_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder> commitBuilder_; /** * .tendermint.types.Commit commit = 2; * @return Whether the commit field is set. */ public boolean hasCommit() { return commitBuilder_ != null || commit_ != null; } /** * .tendermint.types.Commit commit = 2; * @return The commit. */ public tendermint.types.Types.Commit getCommit() { if (commitBuilder_ == null) { return commit_ == null ? tendermint.types.Types.Commit.getDefaultInstance() : commit_; } else { return commitBuilder_.getMessage(); } } /** * .tendermint.types.Commit commit = 2; */ public Builder setCommit(tendermint.types.Types.Commit value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commit_ = value; onChanged(); } else { commitBuilder_.setMessage(value); } return this; } /** * .tendermint.types.Commit commit = 2; */ public Builder setCommit( tendermint.types.Types.Commit.Builder builderForValue) { if (commitBuilder_ == null) { commit_ = builderForValue.build(); onChanged(); } else { commitBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.Commit commit = 2; */ public Builder mergeCommit(tendermint.types.Types.Commit value) { if (commitBuilder_ == null) { if (commit_ != null) { commit_ = tendermint.types.Types.Commit.newBuilder(commit_).mergeFrom(value).buildPartial(); } else { commit_ = value; } onChanged(); } else { commitBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.Commit commit = 2; */ public Builder clearCommit() { if (commitBuilder_ == null) { commit_ = null; onChanged(); } else { commit_ = null; commitBuilder_ = null; } return this; } /** * .tendermint.types.Commit commit = 2; */ public tendermint.types.Types.Commit.Builder getCommitBuilder() { onChanged(); return getCommitFieldBuilder().getBuilder(); } /** * .tendermint.types.Commit commit = 2; */ public tendermint.types.Types.CommitOrBuilder getCommitOrBuilder() { if (commitBuilder_ != null) { return commitBuilder_.getMessageOrBuilder(); } else { return commit_ == null ? tendermint.types.Types.Commit.getDefaultInstance() : commit_; } } /** * .tendermint.types.Commit commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.Commit, tendermint.types.Types.Commit.Builder, tendermint.types.Types.CommitOrBuilder>( getCommit(), getParentForChildren(), isClean()); commit_ = null; } return commitBuilder_; } @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.types.SignedHeader) } // @@protoc_insertion_point(class_scope:tendermint.types.SignedHeader) private static final tendermint.types.Types.SignedHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.SignedHeader(); } public static tendermint.types.Types.SignedHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SignedHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignedHeader(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.types.Types.SignedHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LightBlockOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.LightBlock) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.SignedHeader signed_header = 1; * @return Whether the signedHeader field is set. */ boolean hasSignedHeader(); /** * .tendermint.types.SignedHeader signed_header = 1; * @return The signedHeader. */ tendermint.types.Types.SignedHeader getSignedHeader(); /** * .tendermint.types.SignedHeader signed_header = 1; */ tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder(); /** * .tendermint.types.ValidatorSet validator_set = 2; * @return Whether the validatorSet field is set. */ boolean hasValidatorSet(); /** * .tendermint.types.ValidatorSet validator_set = 2; * @return The validatorSet. */ tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet(); /** * .tendermint.types.ValidatorSet validator_set = 2; */ tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder(); } /** * Protobuf type {@code tendermint.types.LightBlock} */ public static final class LightBlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.LightBlock) LightBlockOrBuilder { private static final long serialVersionUID = 0L; // Use LightBlock.newBuilder() to construct. private LightBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LightBlock() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LightBlock(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LightBlock( 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.types.Types.SignedHeader.Builder subBuilder = null; if (signedHeader_ != null) { subBuilder = signedHeader_.toBuilder(); } signedHeader_ = input.readMessage(tendermint.types.Types.SignedHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signedHeader_); signedHeader_ = subBuilder.buildPartial(); } break; } case 18: { tendermint.types.ValidatorOuterClass.ValidatorSet.Builder subBuilder = null; if (validatorSet_ != null) { subBuilder = validatorSet_.toBuilder(); } validatorSet_ = input.readMessage(tendermint.types.ValidatorOuterClass.ValidatorSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validatorSet_); validatorSet_ = 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.types.Types.internal_static_tendermint_types_LightBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_LightBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.LightBlock.class, tendermint.types.Types.LightBlock.Builder.class); } public static final int SIGNED_HEADER_FIELD_NUMBER = 1; private tendermint.types.Types.SignedHeader signedHeader_; /** * .tendermint.types.SignedHeader signed_header = 1; * @return Whether the signedHeader field is set. */ @java.lang.Override public boolean hasSignedHeader() { return signedHeader_ != null; } /** * .tendermint.types.SignedHeader signed_header = 1; * @return The signedHeader. */ @java.lang.Override public tendermint.types.Types.SignedHeader getSignedHeader() { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } /** * .tendermint.types.SignedHeader signed_header = 1; */ @java.lang.Override public tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { return getSignedHeader(); } public static final int VALIDATOR_SET_FIELD_NUMBER = 2; private tendermint.types.ValidatorOuterClass.ValidatorSet validatorSet_; /** * .tendermint.types.ValidatorSet validator_set = 2; * @return Whether the validatorSet field is set. */ @java.lang.Override public boolean hasValidatorSet() { return validatorSet_ != null; } /** * .tendermint.types.ValidatorSet validator_set = 2; * @return The validatorSet. */ @java.lang.Override public tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet() { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } /** * .tendermint.types.ValidatorSet validator_set = 2; */ @java.lang.Override public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder() { return getValidatorSet(); } 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 (signedHeader_ != null) { output.writeMessage(1, getSignedHeader()); } if (validatorSet_ != null) { output.writeMessage(2, getValidatorSet()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (signedHeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSignedHeader()); } if (validatorSet_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValidatorSet()); } 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.types.Types.LightBlock)) { return super.equals(obj); } tendermint.types.Types.LightBlock other = (tendermint.types.Types.LightBlock) obj; if (hasSignedHeader() != other.hasSignedHeader()) return false; if (hasSignedHeader()) { if (!getSignedHeader() .equals(other.getSignedHeader())) return false; } if (hasValidatorSet() != other.hasValidatorSet()) return false; if (hasValidatorSet()) { if (!getValidatorSet() .equals(other.getValidatorSet())) 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 (hasSignedHeader()) { hash = (37 * hash) + SIGNED_HEADER_FIELD_NUMBER; hash = (53 * hash) + getSignedHeader().hashCode(); } if (hasValidatorSet()) { hash = (37 * hash) + VALIDATOR_SET_FIELD_NUMBER; hash = (53 * hash) + getValidatorSet().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.LightBlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.LightBlock parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.LightBlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.LightBlock parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.LightBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.LightBlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.LightBlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.LightBlock 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.types.Types.LightBlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.LightBlock 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.types.Types.LightBlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.LightBlock 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.types.Types.LightBlock 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.types.LightBlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.LightBlock) tendermint.types.Types.LightBlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_LightBlock_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_LightBlock_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.LightBlock.class, tendermint.types.Types.LightBlock.Builder.class); } // Construct using tendermint.types.Types.LightBlock.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 (signedHeaderBuilder_ == null) { signedHeader_ = null; } else { signedHeader_ = null; signedHeaderBuilder_ = null; } if (validatorSetBuilder_ == null) { validatorSet_ = null; } else { validatorSet_ = null; validatorSetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_LightBlock_descriptor; } @java.lang.Override public tendermint.types.Types.LightBlock getDefaultInstanceForType() { return tendermint.types.Types.LightBlock.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.LightBlock build() { tendermint.types.Types.LightBlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.LightBlock buildPartial() { tendermint.types.Types.LightBlock result = new tendermint.types.Types.LightBlock(this); if (signedHeaderBuilder_ == null) { result.signedHeader_ = signedHeader_; } else { result.signedHeader_ = signedHeaderBuilder_.build(); } if (validatorSetBuilder_ == null) { result.validatorSet_ = validatorSet_; } else { result.validatorSet_ = validatorSetBuilder_.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.types.Types.LightBlock) { return mergeFrom((tendermint.types.Types.LightBlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.LightBlock other) { if (other == tendermint.types.Types.LightBlock.getDefaultInstance()) return this; if (other.hasSignedHeader()) { mergeSignedHeader(other.getSignedHeader()); } if (other.hasValidatorSet()) { mergeValidatorSet(other.getValidatorSet()); } 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.types.Types.LightBlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.LightBlock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.types.Types.SignedHeader signedHeader_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder> signedHeaderBuilder_; /** * .tendermint.types.SignedHeader signed_header = 1; * @return Whether the signedHeader field is set. */ public boolean hasSignedHeader() { return signedHeaderBuilder_ != null || signedHeader_ != null; } /** * .tendermint.types.SignedHeader signed_header = 1; * @return The signedHeader. */ public tendermint.types.Types.SignedHeader getSignedHeader() { if (signedHeaderBuilder_ == null) { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } else { return signedHeaderBuilder_.getMessage(); } } /** * .tendermint.types.SignedHeader signed_header = 1; */ public Builder setSignedHeader(tendermint.types.Types.SignedHeader value) { if (signedHeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signedHeader_ = value; onChanged(); } else { signedHeaderBuilder_.setMessage(value); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1; */ public Builder setSignedHeader( tendermint.types.Types.SignedHeader.Builder builderForValue) { if (signedHeaderBuilder_ == null) { signedHeader_ = builderForValue.build(); onChanged(); } else { signedHeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1; */ public Builder mergeSignedHeader(tendermint.types.Types.SignedHeader value) { if (signedHeaderBuilder_ == null) { if (signedHeader_ != null) { signedHeader_ = tendermint.types.Types.SignedHeader.newBuilder(signedHeader_).mergeFrom(value).buildPartial(); } else { signedHeader_ = value; } onChanged(); } else { signedHeaderBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.SignedHeader signed_header = 1; */ public Builder clearSignedHeader() { if (signedHeaderBuilder_ == null) { signedHeader_ = null; onChanged(); } else { signedHeader_ = null; signedHeaderBuilder_ = null; } return this; } /** * .tendermint.types.SignedHeader signed_header = 1; */ public tendermint.types.Types.SignedHeader.Builder getSignedHeaderBuilder() { onChanged(); return getSignedHeaderFieldBuilder().getBuilder(); } /** * .tendermint.types.SignedHeader signed_header = 1; */ public tendermint.types.Types.SignedHeaderOrBuilder getSignedHeaderOrBuilder() { if (signedHeaderBuilder_ != null) { return signedHeaderBuilder_.getMessageOrBuilder(); } else { return signedHeader_ == null ? tendermint.types.Types.SignedHeader.getDefaultInstance() : signedHeader_; } } /** * .tendermint.types.SignedHeader signed_header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder> getSignedHeaderFieldBuilder() { if (signedHeaderBuilder_ == null) { signedHeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.SignedHeader, tendermint.types.Types.SignedHeader.Builder, tendermint.types.Types.SignedHeaderOrBuilder>( getSignedHeader(), getParentForChildren(), isClean()); signedHeader_ = null; } return signedHeaderBuilder_; } private tendermint.types.ValidatorOuterClass.ValidatorSet validatorSet_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> validatorSetBuilder_; /** * .tendermint.types.ValidatorSet validator_set = 2; * @return Whether the validatorSet field is set. */ public boolean hasValidatorSet() { return validatorSetBuilder_ != null || validatorSet_ != null; } /** * .tendermint.types.ValidatorSet validator_set = 2; * @return The validatorSet. */ public tendermint.types.ValidatorOuterClass.ValidatorSet getValidatorSet() { if (validatorSetBuilder_ == null) { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } else { return validatorSetBuilder_.getMessage(); } } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public Builder setValidatorSet(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (validatorSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validatorSet_ = value; onChanged(); } else { validatorSetBuilder_.setMessage(value); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public Builder setValidatorSet( tendermint.types.ValidatorOuterClass.ValidatorSet.Builder builderForValue) { if (validatorSetBuilder_ == null) { validatorSet_ = builderForValue.build(); onChanged(); } else { validatorSetBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public Builder mergeValidatorSet(tendermint.types.ValidatorOuterClass.ValidatorSet value) { if (validatorSetBuilder_ == null) { if (validatorSet_ != null) { validatorSet_ = tendermint.types.ValidatorOuterClass.ValidatorSet.newBuilder(validatorSet_).mergeFrom(value).buildPartial(); } else { validatorSet_ = value; } onChanged(); } else { validatorSetBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public Builder clearValidatorSet() { if (validatorSetBuilder_ == null) { validatorSet_ = null; onChanged(); } else { validatorSet_ = null; validatorSetBuilder_ = null; } return this; } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public tendermint.types.ValidatorOuterClass.ValidatorSet.Builder getValidatorSetBuilder() { onChanged(); return getValidatorSetFieldBuilder().getBuilder(); } /** * .tendermint.types.ValidatorSet validator_set = 2; */ public tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder getValidatorSetOrBuilder() { if (validatorSetBuilder_ != null) { return validatorSetBuilder_.getMessageOrBuilder(); } else { return validatorSet_ == null ? tendermint.types.ValidatorOuterClass.ValidatorSet.getDefaultInstance() : validatorSet_; } } /** * .tendermint.types.ValidatorSet validator_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder> getValidatorSetFieldBuilder() { if (validatorSetBuilder_ == null) { validatorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.ValidatorOuterClass.ValidatorSet, tendermint.types.ValidatorOuterClass.ValidatorSet.Builder, tendermint.types.ValidatorOuterClass.ValidatorSetOrBuilder>( getValidatorSet(), getParentForChildren(), isClean()); validatorSet_ = null; } return validatorSetBuilder_; } @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.types.LightBlock) } // @@protoc_insertion_point(class_scope:tendermint.types.LightBlock) private static final tendermint.types.Types.LightBlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.LightBlock(); } public static tendermint.types.Types.LightBlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LightBlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LightBlock(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.types.Types.LightBlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BlockMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.BlockMeta) com.google.protobuf.MessageOrBuilder { /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ boolean hasBlockId(); /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ tendermint.types.Types.BlockID getBlockId(); /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder(); /** * int64 block_size = 2; * @return The blockSize. */ long getBlockSize(); /** * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; * @return Whether the header field is set. */ boolean hasHeader(); /** * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; * @return The header. */ tendermint.types.Types.Header getHeader(); /** * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; */ tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder(); /** * int64 num_txs = 4; * @return The numTxs. */ long getNumTxs(); } /** * Protobuf type {@code tendermint.types.BlockMeta} */ public static final class BlockMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.BlockMeta) BlockMetaOrBuilder { private static final long serialVersionUID = 0L; // Use BlockMeta.newBuilder() to construct. private BlockMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BlockMeta() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BlockMeta(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlockMeta( 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.types.Types.BlockID.Builder subBuilder = null; if (blockId_ != null) { subBuilder = blockId_.toBuilder(); } blockId_ = input.readMessage(tendermint.types.Types.BlockID.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(blockId_); blockId_ = subBuilder.buildPartial(); } break; } case 16: { blockSize_ = input.readInt64(); break; } case 26: { 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 32: { numTxs_ = 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.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.BlockMeta.class, tendermint.types.Types.BlockMeta.Builder.class); } public static final int BLOCK_ID_FIELD_NUMBER = 1; private tendermint.types.Types.BlockID blockId_; /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return blockId_ != null; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ @java.lang.Override public tendermint.types.Types.BlockID getBlockId() { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ @java.lang.Override public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { return getBlockId(); } public static final int BLOCK_SIZE_FIELD_NUMBER = 2; private long blockSize_; /** * int64 block_size = 2; * @return The blockSize. */ @java.lang.Override public long getBlockSize() { return blockSize_; } public static final int HEADER_FIELD_NUMBER = 3; private tendermint.types.Types.Header header_; /** * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; * @return Whether the header field is set. */ @java.lang.Override public boolean hasHeader() { return header_ != null; } /** * .tendermint.types.Header header = 3 [(.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 = 3 [(.gogoproto.nullable) = false]; */ @java.lang.Override public tendermint.types.Types.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int NUM_TXS_FIELD_NUMBER = 4; private long numTxs_; /** * int64 num_txs = 4; * @return The numTxs. */ @java.lang.Override public long getNumTxs() { return numTxs_; } 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 (blockId_ != null) { output.writeMessage(1, getBlockId()); } if (blockSize_ != 0L) { output.writeInt64(2, blockSize_); } if (header_ != null) { output.writeMessage(3, getHeader()); } if (numTxs_ != 0L) { output.writeInt64(4, numTxs_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (blockId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBlockId()); } if (blockSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, blockSize_); } if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHeader()); } if (numTxs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, numTxs_); } 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.types.Types.BlockMeta)) { return super.equals(obj); } tendermint.types.Types.BlockMeta other = (tendermint.types.Types.BlockMeta) obj; if (hasBlockId() != other.hasBlockId()) return false; if (hasBlockId()) { if (!getBlockId() .equals(other.getBlockId())) return false; } if (getBlockSize() != other.getBlockSize()) return false; if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (getNumTxs() != other.getNumTxs()) 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 (hasBlockId()) { hash = (37 * hash) + BLOCK_ID_FIELD_NUMBER; hash = (53 * hash) + getBlockId().hashCode(); } hash = (37 * hash) + BLOCK_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockSize()); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + NUM_TXS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumTxs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.BlockMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.BlockMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.BlockMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.BlockMeta 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.types.Types.BlockMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.BlockMeta 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.types.Types.BlockMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.BlockMeta 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.types.Types.BlockMeta 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.types.BlockMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.BlockMeta) tendermint.types.Types.BlockMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.BlockMeta.class, tendermint.types.Types.BlockMeta.Builder.class); } // Construct using tendermint.types.Types.BlockMeta.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 (blockIdBuilder_ == null) { blockId_ = null; } else { blockId_ = null; blockIdBuilder_ = null; } blockSize_ = 0L; if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } numTxs_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_BlockMeta_descriptor; } @java.lang.Override public tendermint.types.Types.BlockMeta getDefaultInstanceForType() { return tendermint.types.Types.BlockMeta.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.BlockMeta build() { tendermint.types.Types.BlockMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.BlockMeta buildPartial() { tendermint.types.Types.BlockMeta result = new tendermint.types.Types.BlockMeta(this); if (blockIdBuilder_ == null) { result.blockId_ = blockId_; } else { result.blockId_ = blockIdBuilder_.build(); } result.blockSize_ = blockSize_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.numTxs_ = numTxs_; 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.types.Types.BlockMeta) { return mergeFrom((tendermint.types.Types.BlockMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.BlockMeta other) { if (other == tendermint.types.Types.BlockMeta.getDefaultInstance()) return this; if (other.hasBlockId()) { mergeBlockId(other.getBlockId()); } if (other.getBlockSize() != 0L) { setBlockSize(other.getBlockSize()); } if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getNumTxs() != 0L) { setNumTxs(other.getNumTxs()); } 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.types.Types.BlockMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.BlockMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private tendermint.types.Types.BlockID blockId_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> blockIdBuilder_; /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return Whether the blockId field is set. */ public boolean hasBlockId() { return blockIdBuilder_ != null || blockId_ != null; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; * @return The blockId. */ public tendermint.types.Types.BlockID getBlockId() { if (blockIdBuilder_ == null) { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } else { return blockIdBuilder_.getMessage(); } } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockId_ = value; onChanged(); } else { blockIdBuilder_.setMessage(value); } return this; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder setBlockId( tendermint.types.Types.BlockID.Builder builderForValue) { if (blockIdBuilder_ == null) { blockId_ = builderForValue.build(); onChanged(); } else { blockIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder mergeBlockId(tendermint.types.Types.BlockID value) { if (blockIdBuilder_ == null) { if (blockId_ != null) { blockId_ = tendermint.types.Types.BlockID.newBuilder(blockId_).mergeFrom(value).buildPartial(); } else { blockId_ = value; } onChanged(); } else { blockIdBuilder_.mergeFrom(value); } return this; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public Builder clearBlockId() { if (blockIdBuilder_ == null) { blockId_ = null; onChanged(); } else { blockId_ = null; blockIdBuilder_ = null; } return this; } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockID.Builder getBlockIdBuilder() { onChanged(); return getBlockIdFieldBuilder().getBuilder(); } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ public tendermint.types.Types.BlockIDOrBuilder getBlockIdOrBuilder() { if (blockIdBuilder_ != null) { return blockIdBuilder_.getMessageOrBuilder(); } else { return blockId_ == null ? tendermint.types.Types.BlockID.getDefaultInstance() : blockId_; } } /** * .tendermint.types.BlockID block_id = 1 [(.gogoproto.nullable) = false, (.gogoproto.customname) = "BlockID"]; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder> getBlockIdFieldBuilder() { if (blockIdBuilder_ == null) { blockIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.types.Types.BlockID, tendermint.types.Types.BlockID.Builder, tendermint.types.Types.BlockIDOrBuilder>( getBlockId(), getParentForChildren(), isClean()); blockId_ = null; } return blockIdBuilder_; } private long blockSize_ ; /** * int64 block_size = 2; * @return The blockSize. */ @java.lang.Override public long getBlockSize() { return blockSize_; } /** * int64 block_size = 2; * @param value The blockSize to set. * @return This builder for chaining. */ public Builder setBlockSize(long value) { blockSize_ = value; onChanged(); return this; } /** * int64 block_size = 2; * @return This builder for chaining. */ public Builder clearBlockSize() { blockSize_ = 0L; 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 = 3 [(.gogoproto.nullable) = false]; * @return Whether the header field is set. */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .tendermint.types.Header header = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.gogoproto.nullable) = false]; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .tendermint.types.Header header = 3 [(.gogoproto.nullable) = false]; */ public tendermint.types.Types.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .tendermint.types.Header header = 3 [(.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 = 3 [(.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 long numTxs_ ; /** * int64 num_txs = 4; * @return The numTxs. */ @java.lang.Override public long getNumTxs() { return numTxs_; } /** * int64 num_txs = 4; * @param value The numTxs to set. * @return This builder for chaining. */ public Builder setNumTxs(long value) { numTxs_ = value; onChanged(); return this; } /** * int64 num_txs = 4; * @return This builder for chaining. */ public Builder clearNumTxs() { numTxs_ = 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.types.BlockMeta) } // @@protoc_insertion_point(class_scope:tendermint.types.BlockMeta) private static final tendermint.types.Types.BlockMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.BlockMeta(); } public static tendermint.types.Types.BlockMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BlockMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlockMeta(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.types.Types.BlockMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxProofOrBuilder extends // @@protoc_insertion_point(interface_extends:tendermint.types.TxProof) com.google.protobuf.MessageOrBuilder { /** * bytes root_hash = 1; * @return The rootHash. */ com.google.protobuf.ByteString getRootHash(); /** * bytes data = 2; * @return The data. */ com.google.protobuf.ByteString getData(); /** * .tendermint.crypto.Proof proof = 3; * @return Whether the proof field is set. */ boolean hasProof(); /** * .tendermint.crypto.Proof proof = 3; * @return The proof. */ tendermint.crypto.ProofOuterClass.Proof getProof(); /** * .tendermint.crypto.Proof proof = 3; */ tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder(); } /** *
   * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
   * 
* * Protobuf type {@code tendermint.types.TxProof} */ public static final class TxProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tendermint.types.TxProof) TxProofOrBuilder { private static final long serialVersionUID = 0L; // Use TxProof.newBuilder() to construct. private TxProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxProof() { rootHash_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TxProof(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxProof( 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: { rootHash_ = input.readBytes(); break; } case 18: { data_ = input.readBytes(); break; } case 26: { tendermint.crypto.ProofOuterClass.Proof.Builder subBuilder = null; if (proof_ != null) { subBuilder = proof_.toBuilder(); } proof_ = input.readMessage(tendermint.crypto.ProofOuterClass.Proof.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proof_); proof_ = 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.types.Types.internal_static_tendermint_types_TxProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_TxProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.TxProof.class, tendermint.types.Types.TxProof.Builder.class); } public static final int ROOT_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString rootHash_; /** * bytes root_hash = 1; * @return The rootHash. */ @java.lang.Override public com.google.protobuf.ByteString getRootHash() { return rootHash_; } 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 PROOF_FIELD_NUMBER = 3; private tendermint.crypto.ProofOuterClass.Proof proof_; /** * .tendermint.crypto.Proof proof = 3; * @return Whether the proof field is set. */ @java.lang.Override public boolean hasProof() { return proof_ != null; } /** * .tendermint.crypto.Proof proof = 3; * @return The proof. */ @java.lang.Override public tendermint.crypto.ProofOuterClass.Proof getProof() { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } /** * .tendermint.crypto.Proof proof = 3; */ @java.lang.Override public tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { return getProof(); } 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 (!rootHash_.isEmpty()) { output.writeBytes(1, rootHash_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } if (proof_ != null) { output.writeMessage(3, getProof()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!rootHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, rootHash_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } if (proof_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getProof()); } 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.types.Types.TxProof)) { return super.equals(obj); } tendermint.types.Types.TxProof other = (tendermint.types.Types.TxProof) obj; if (!getRootHash() .equals(other.getRootHash())) return false; if (!getData() .equals(other.getData())) return false; if (hasProof() != other.hasProof()) return false; if (hasProof()) { if (!getProof() .equals(other.getProof())) 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) + ROOT_HASH_FIELD_NUMBER; hash = (53 * hash) + getRootHash().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (hasProof()) { hash = (37 * hash) + PROOF_FIELD_NUMBER; hash = (53 * hash) + getProof().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static tendermint.types.Types.TxProof parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.TxProof parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.TxProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.TxProof parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.TxProof parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tendermint.types.Types.TxProof parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tendermint.types.Types.TxProof parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.TxProof 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.types.Types.TxProof parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tendermint.types.Types.TxProof 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.types.Types.TxProof parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tendermint.types.Types.TxProof 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.types.Types.TxProof 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; } /** *
     * TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
     * 
* * Protobuf type {@code tendermint.types.TxProof} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tendermint.types.TxProof) tendermint.types.Types.TxProofOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tendermint.types.Types.internal_static_tendermint_types_TxProof_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tendermint.types.Types.internal_static_tendermint_types_TxProof_fieldAccessorTable .ensureFieldAccessorsInitialized( tendermint.types.Types.TxProof.class, tendermint.types.Types.TxProof.Builder.class); } // Construct using tendermint.types.Types.TxProof.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(); rootHash_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; if (proofBuilder_ == null) { proof_ = null; } else { proof_ = null; proofBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tendermint.types.Types.internal_static_tendermint_types_TxProof_descriptor; } @java.lang.Override public tendermint.types.Types.TxProof getDefaultInstanceForType() { return tendermint.types.Types.TxProof.getDefaultInstance(); } @java.lang.Override public tendermint.types.Types.TxProof build() { tendermint.types.Types.TxProof result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tendermint.types.Types.TxProof buildPartial() { tendermint.types.Types.TxProof result = new tendermint.types.Types.TxProof(this); result.rootHash_ = rootHash_; result.data_ = data_; if (proofBuilder_ == null) { result.proof_ = proof_; } else { result.proof_ = proofBuilder_.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.types.Types.TxProof) { return mergeFrom((tendermint.types.Types.TxProof)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tendermint.types.Types.TxProof other) { if (other == tendermint.types.Types.TxProof.getDefaultInstance()) return this; if (other.getRootHash() != com.google.protobuf.ByteString.EMPTY) { setRootHash(other.getRootHash()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.hasProof()) { mergeProof(other.getProof()); } 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.types.Types.TxProof parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (tendermint.types.Types.TxProof) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString rootHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes root_hash = 1; * @return The rootHash. */ @java.lang.Override public com.google.protobuf.ByteString getRootHash() { return rootHash_; } /** * bytes root_hash = 1; * @param value The rootHash to set. * @return This builder for chaining. */ public Builder setRootHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rootHash_ = value; onChanged(); return this; } /** * bytes root_hash = 1; * @return This builder for chaining. */ public Builder clearRootHash() { rootHash_ = getDefaultInstance().getRootHash(); 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 tendermint.crypto.ProofOuterClass.Proof proof_; private com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder> proofBuilder_; /** * .tendermint.crypto.Proof proof = 3; * @return Whether the proof field is set. */ public boolean hasProof() { return proofBuilder_ != null || proof_ != null; } /** * .tendermint.crypto.Proof proof = 3; * @return The proof. */ public tendermint.crypto.ProofOuterClass.Proof getProof() { if (proofBuilder_ == null) { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } else { return proofBuilder_.getMessage(); } } /** * .tendermint.crypto.Proof proof = 3; */ public Builder setProof(tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proof_ = value; onChanged(); } else { proofBuilder_.setMessage(value); } return this; } /** * .tendermint.crypto.Proof proof = 3; */ public Builder setProof( tendermint.crypto.ProofOuterClass.Proof.Builder builderForValue) { if (proofBuilder_ == null) { proof_ = builderForValue.build(); onChanged(); } else { proofBuilder_.setMessage(builderForValue.build()); } return this; } /** * .tendermint.crypto.Proof proof = 3; */ public Builder mergeProof(tendermint.crypto.ProofOuterClass.Proof value) { if (proofBuilder_ == null) { if (proof_ != null) { proof_ = tendermint.crypto.ProofOuterClass.Proof.newBuilder(proof_).mergeFrom(value).buildPartial(); } else { proof_ = value; } onChanged(); } else { proofBuilder_.mergeFrom(value); } return this; } /** * .tendermint.crypto.Proof proof = 3; */ public Builder clearProof() { if (proofBuilder_ == null) { proof_ = null; onChanged(); } else { proof_ = null; proofBuilder_ = null; } return this; } /** * .tendermint.crypto.Proof proof = 3; */ public tendermint.crypto.ProofOuterClass.Proof.Builder getProofBuilder() { onChanged(); return getProofFieldBuilder().getBuilder(); } /** * .tendermint.crypto.Proof proof = 3; */ public tendermint.crypto.ProofOuterClass.ProofOrBuilder getProofOrBuilder() { if (proofBuilder_ != null) { return proofBuilder_.getMessageOrBuilder(); } else { return proof_ == null ? tendermint.crypto.ProofOuterClass.Proof.getDefaultInstance() : proof_; } } /** * .tendermint.crypto.Proof proof = 3; */ private com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder> getProofFieldBuilder() { if (proofBuilder_ == null) { proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< tendermint.crypto.ProofOuterClass.Proof, tendermint.crypto.ProofOuterClass.Proof.Builder, tendermint.crypto.ProofOuterClass.ProofOrBuilder>( getProof(), getParentForChildren(), isClean()); proof_ = null; } return proofBuilder_; } @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.types.TxProof) } // @@protoc_insertion_point(class_scope:tendermint.types.TxProof) private static final tendermint.types.Types.TxProof DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tendermint.types.Types.TxProof(); } public static tendermint.types.Types.TxProof getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TxProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxProof(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.types.Types.TxProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_PartSetHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_PartSetHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Part_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Part_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_BlockID_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_BlockID_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Data_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Data_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Vote_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Vote_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Commit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Commit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_CommitSig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_CommitSig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_Proposal_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_Proposal_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_SignedHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_SignedHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_LightBlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_LightBlock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_BlockMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_BlockMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_tendermint_types_TxProof_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_tendermint_types_TxProof_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n2github.com/tendermint/tendermint/types" + "/types.proto\022\020tendermint.types\032-github.c" + "om/gogo/protobuf/gogoproto/gogo.proto\032\037g" + "oogle/protobuf/timestamp.proto\0323github.c" + "om/tendermint/tendermint/crypto/proof.pr" + "oto\0324github.com/tendermint/tendermint/ve" + "rsion/types.proto\0326github.com/tendermint" + "/tendermint/types/validator.proto\",\n\rPar" + "tSetHeader\022\r\n\005total\030\001 \001(\r\022\014\n\004hash\030\002 \001(\014\"" + "S\n\004Part\022\r\n\005index\030\001 \001(\r\022\r\n\005bytes\030\002 \001(\014\022-\n" + "\005proof\030\003 \001(\0132\030.tendermint.crypto.ProofB\004" + "\310\336\037\000\"W\n\007BlockID\022\014\n\004hash\030\001 \001(\014\022>\n\017part_se" + "t_header\030\002 \001(\0132\037.tendermint.types.PartSe" + "tHeaderB\004\310\336\037\000\"\263\003\n\006Header\0224\n\007version\030\001 \001(" + "\0132\035.tendermint.version.ConsensusB\004\310\336\037\000\022\035" + "\n\010chain_id\030\002 \001(\tB\013\342\336\037\007ChainID\022\016\n\006height\030" + "\003 \001(\003\0222\n\004time\030\004 \001(\0132\032.google.protobuf.Ti" + "mestampB\010\310\336\037\000\220\337\037\001\0226\n\rlast_block_id\030\005 \001(\013" + "2\031.tendermint.types.BlockIDB\004\310\336\037\000\022\030\n\020las" + "t_commit_hash\030\006 \001(\014\022\021\n\tdata_hash\030\007 \001(\014\022\027" + "\n\017validators_hash\030\010 \001(\014\022\034\n\024next_validato" + "rs_hash\030\t \001(\014\022\026\n\016consensus_hash\030\n \001(\014\022\020\n" + "\010app_hash\030\013 \001(\014\022\031\n\021last_results_hash\030\014 \001" + "(\014\022\025\n\revidence_hash\030\r \001(\014\022\030\n\020proposer_ad" + "dress\030\016 \001(\014\"\023\n\004Data\022\013\n\003txs\030\001 \003(\014\"\222\002\n\004Vot" + "e\022-\n\004type\030\001 \001(\0162\037.tendermint.types.Signe" + "dMsgType\022\016\n\006height\030\002 \001(\003\022\r\n\005round\030\003 \001(\005\022" + "<\n\010block_id\030\004 \001(\0132\031.tendermint.types.Blo" + "ckIDB\017\310\336\037\000\342\336\037\007BlockID\0227\n\ttimestamp\030\005 \001(\013" + "2\032.google.protobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\031" + "\n\021validator_address\030\006 \001(\014\022\027\n\017validator_i" + "ndex\030\007 \001(\005\022\021\n\tsignature\030\010 \001(\014\"\234\001\n\006Commit" + "\022\016\n\006height\030\001 \001(\003\022\r\n\005round\030\002 \001(\005\022<\n\010block" + "_id\030\003 \001(\0132\031.tendermint.types.BlockIDB\017\310\336" + "\037\000\342\336\037\007BlockID\0225\n\nsignatures\030\004 \003(\0132\033.tend" + "ermint.types.CommitSigB\004\310\336\037\000\"\250\001\n\tCommitS" + "ig\0224\n\rblock_id_flag\030\001 \001(\0162\035.tendermint.t" + "ypes.BlockIDFlag\022\031\n\021validator_address\030\002 " + "\001(\014\0227\n\ttimestamp\030\003 \001(\0132\032.google.protobuf" + ".TimestampB\010\310\336\037\000\220\337\037\001\022\021\n\tsignature\030\004 \001(\014\"" + "\365\001\n\010Proposal\022-\n\004type\030\001 \001(\0162\037.tendermint." + "types.SignedMsgType\022\016\n\006height\030\002 \001(\003\022\r\n\005r" + "ound\030\003 \001(\005\022\021\n\tpol_round\030\004 \001(\005\022<\n\010block_i" + "d\030\005 \001(\0132\031.tendermint.types.BlockIDB\017\342\336\037\007" + "BlockID\310\336\037\000\0227\n\ttimestamp\030\006 \001(\0132\032.google." + "protobuf.TimestampB\010\310\336\037\000\220\337\037\001\022\021\n\tsignatur" + "e\030\007 \001(\014\"b\n\014SignedHeader\022(\n\006header\030\001 \001(\0132" + "\030.tendermint.types.Header\022(\n\006commit\030\002 \001(" + "\0132\030.tendermint.types.Commit\"z\n\nLightBloc" + "k\0225\n\rsigned_header\030\001 \001(\0132\036.tendermint.ty" + "pes.SignedHeader\0225\n\rvalidator_set\030\002 \001(\0132" + "\036.tendermint.types.ValidatorSet\"\236\001\n\tBloc" + "kMeta\022<\n\010block_id\030\001 \001(\0132\031.tendermint.typ" + "es.BlockIDB\017\342\336\037\007BlockID\310\336\037\000\022\022\n\nblock_siz" + "e\030\002 \001(\003\022.\n\006header\030\003 \001(\0132\030.tendermint.typ" + "es.HeaderB\004\310\336\037\000\022\017\n\007num_txs\030\004 \001(\003\"S\n\007TxPr" + "oof\022\021\n\troot_hash\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022\'\n\005" + "proof\030\003 \001(\0132\030.tendermint.crypto.Proof*\327\001" + "\n\013BlockIDFlag\0221\n\025BLOCK_ID_FLAG_UNKNOWN\020\000" + "\032\026\212\235 \022BlockIDFlagUnknown\022/\n\024BLOCK_ID_FLA" + "G_ABSENT\020\001\032\025\212\235 \021BlockIDFlagAbsent\022/\n\024BLO" + "CK_ID_FLAG_COMMIT\020\002\032\025\212\235 \021BlockIDFlagComm" + "it\022)\n\021BLOCK_ID_FLAG_NIL\020\003\032\022\212\235 \016BlockIDFl" + "agNil\032\010\250\244\036\001\210\243\036\000*\327\001\n\rSignedMsgType\022,\n\027SIG" + "NED_MSG_TYPE_UNKNOWN\020\000\032\017\212\235 \013UnknownType\022" + ",\n\027SIGNED_MSG_TYPE_PREVOTE\020\001\032\017\212\235 \013Prevot" + "eType\0220\n\031SIGNED_MSG_TYPE_PRECOMMIT\020\002\032\021\212\235" + " \rPrecommitType\022.\n\030SIGNED_MSG_TYPE_PROPO" + "SAL\020 \032\020\212\235 \014ProposalType\032\010\250\244\036\001\210\243\036\000B9Z7git" + "hub.com/tendermint/tendermint/proto/tend" + "ermint/typesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.hotmoka.protobuf.tendermint.GoGoProtos.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), tendermint.crypto.ProofOuterClass.getDescriptor(), tendermint.version.Types.getDescriptor(), tendermint.types.ValidatorOuterClass.getDescriptor(), }); internal_static_tendermint_types_PartSetHeader_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_tendermint_types_PartSetHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_PartSetHeader_descriptor, new java.lang.String[] { "Total", "Hash", }); internal_static_tendermint_types_Part_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_tendermint_types_Part_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Part_descriptor, new java.lang.String[] { "Index", "Bytes", "Proof", }); internal_static_tendermint_types_BlockID_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_tendermint_types_BlockID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_BlockID_descriptor, new java.lang.String[] { "Hash", "PartSetHeader", }); internal_static_tendermint_types_Header_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_tendermint_types_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Header_descriptor, new java.lang.String[] { "Version", "ChainId", "Height", "Time", "LastBlockId", "LastCommitHash", "DataHash", "ValidatorsHash", "NextValidatorsHash", "ConsensusHash", "AppHash", "LastResultsHash", "EvidenceHash", "ProposerAddress", }); internal_static_tendermint_types_Data_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_tendermint_types_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Data_descriptor, new java.lang.String[] { "Txs", }); internal_static_tendermint_types_Vote_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_tendermint_types_Vote_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Vote_descriptor, new java.lang.String[] { "Type", "Height", "Round", "BlockId", "Timestamp", "ValidatorAddress", "ValidatorIndex", "Signature", }); internal_static_tendermint_types_Commit_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_tendermint_types_Commit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Commit_descriptor, new java.lang.String[] { "Height", "Round", "BlockId", "Signatures", }); internal_static_tendermint_types_CommitSig_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_tendermint_types_CommitSig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_CommitSig_descriptor, new java.lang.String[] { "BlockIdFlag", "ValidatorAddress", "Timestamp", "Signature", }); internal_static_tendermint_types_Proposal_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_tendermint_types_Proposal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_Proposal_descriptor, new java.lang.String[] { "Type", "Height", "Round", "PolRound", "BlockId", "Timestamp", "Signature", }); internal_static_tendermint_types_SignedHeader_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_tendermint_types_SignedHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_SignedHeader_descriptor, new java.lang.String[] { "Header", "Commit", }); internal_static_tendermint_types_LightBlock_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_tendermint_types_LightBlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_LightBlock_descriptor, new java.lang.String[] { "SignedHeader", "ValidatorSet", }); internal_static_tendermint_types_BlockMeta_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_tendermint_types_BlockMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_BlockMeta_descriptor, new java.lang.String[] { "BlockId", "BlockSize", "Header", "NumTxs", }); internal_static_tendermint_types_TxProof_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_tendermint_types_TxProof_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_tendermint_types_TxProof_descriptor, new java.lang.String[] { "RootHash", "Data", "Proof", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.customname); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.enumvalueCustomname); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.goprotoEnumPrefix); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.goprotoEnumStringer); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.nullable); registry.add(io.hotmoka.protobuf.tendermint.GoGoProtos.stdtime); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); io.hotmoka.protobuf.tendermint.GoGoProtos.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); tendermint.crypto.ProofOuterClass.getDescriptor(); tendermint.version.Types.getDescriptor(); tendermint.types.ValidatorOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy