com.hederahashgraph.api.proto.java.BlockInfo Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: state/blockrecords/block_info.proto
package com.hederahashgraph.api.proto.java;
/**
*
**
* Information about ongoing, most recently completed, and last 256 blocks.
*
*
* Protobuf type {@code proto.BlockInfo}
*/
public final class BlockInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.BlockInfo)
BlockInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use BlockInfo.newBuilder() to construct.
private BlockInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BlockInfo() {
blockHashes_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BlockInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BlockInfo(
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: {
lastBlockNumber_ = input.readInt64();
break;
}
case 18: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (firstConsTimeOfLastBlock_ != null) {
subBuilder = firstConsTimeOfLastBlock_.toBuilder();
}
firstConsTimeOfLastBlock_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(firstConsTimeOfLastBlock_);
firstConsTimeOfLastBlock_ = subBuilder.buildPartial();
}
break;
}
case 26: {
blockHashes_ = input.readBytes();
break;
}
case 34: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (consTimeOfLastHandledTxn_ != null) {
subBuilder = consTimeOfLastHandledTxn_.toBuilder();
}
consTimeOfLastHandledTxn_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(consTimeOfLastHandledTxn_);
consTimeOfLastHandledTxn_ = subBuilder.buildPartial();
}
break;
}
case 40: {
migrationRecordsStreamed_ = input.readBool();
break;
}
case 50: {
com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null;
if (firstConsTimeOfCurrentBlock_ != null) {
subBuilder = firstConsTimeOfCurrentBlock_.toBuilder();
}
firstConsTimeOfCurrentBlock_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(firstConsTimeOfCurrentBlock_);
firstConsTimeOfCurrentBlock_ = 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 com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.BlockInfo.class, com.hederahashgraph.api.proto.java.BlockInfo.Builder.class);
}
public static final int LAST_BLOCK_NUMBER_FIELD_NUMBER = 1;
private long lastBlockNumber_;
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @return The lastBlockNumber.
*/
@java.lang.Override
public long getLastBlockNumber() {
return lastBlockNumber_;
}
public static final int FIRST_CONS_TIME_OF_LAST_BLOCK_FIELD_NUMBER = 2;
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfLastBlock_;
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return Whether the firstConsTimeOfLastBlock field is set.
*/
@java.lang.Override
public boolean hasFirstConsTimeOfLastBlock() {
return firstConsTimeOfLastBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return The firstConsTimeOfLastBlock.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfLastBlock() {
return firstConsTimeOfLastBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfLastBlock_;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfLastBlockOrBuilder() {
return getFirstConsTimeOfLastBlock();
}
public static final int BLOCK_HASHES_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString blockHashes_;
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @return The blockHashes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockHashes() {
return blockHashes_;
}
public static final int CONS_TIME_OF_LAST_HANDLED_TXN_FIELD_NUMBER = 4;
private com.hederahashgraph.api.proto.java.Timestamp consTimeOfLastHandledTxn_;
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return Whether the consTimeOfLastHandledTxn field is set.
*/
@java.lang.Override
public boolean hasConsTimeOfLastHandledTxn() {
return consTimeOfLastHandledTxn_ != null;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return The consTimeOfLastHandledTxn.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getConsTimeOfLastHandledTxn() {
return consTimeOfLastHandledTxn_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consTimeOfLastHandledTxn_;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsTimeOfLastHandledTxnOrBuilder() {
return getConsTimeOfLastHandledTxn();
}
public static final int MIGRATION_RECORDS_STREAMED_FIELD_NUMBER = 5;
private boolean migrationRecordsStreamed_;
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @return The migrationRecordsStreamed.
*/
@java.lang.Override
public boolean getMigrationRecordsStreamed() {
return migrationRecordsStreamed_;
}
public static final int FIRST_CONS_TIME_OF_CURRENT_BLOCK_FIELD_NUMBER = 6;
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfCurrentBlock_;
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return Whether the firstConsTimeOfCurrentBlock field is set.
*/
@java.lang.Override
public boolean hasFirstConsTimeOfCurrentBlock() {
return firstConsTimeOfCurrentBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return The firstConsTimeOfCurrentBlock.
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfCurrentBlock() {
return firstConsTimeOfCurrentBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfCurrentBlock_;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
@java.lang.Override
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfCurrentBlockOrBuilder() {
return getFirstConsTimeOfCurrentBlock();
}
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 (lastBlockNumber_ != 0L) {
output.writeInt64(1, lastBlockNumber_);
}
if (firstConsTimeOfLastBlock_ != null) {
output.writeMessage(2, getFirstConsTimeOfLastBlock());
}
if (!blockHashes_.isEmpty()) {
output.writeBytes(3, blockHashes_);
}
if (consTimeOfLastHandledTxn_ != null) {
output.writeMessage(4, getConsTimeOfLastHandledTxn());
}
if (migrationRecordsStreamed_ != false) {
output.writeBool(5, migrationRecordsStreamed_);
}
if (firstConsTimeOfCurrentBlock_ != null) {
output.writeMessage(6, getFirstConsTimeOfCurrentBlock());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (lastBlockNumber_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, lastBlockNumber_);
}
if (firstConsTimeOfLastBlock_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFirstConsTimeOfLastBlock());
}
if (!blockHashes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, blockHashes_);
}
if (consTimeOfLastHandledTxn_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getConsTimeOfLastHandledTxn());
}
if (migrationRecordsStreamed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, migrationRecordsStreamed_);
}
if (firstConsTimeOfCurrentBlock_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getFirstConsTimeOfCurrentBlock());
}
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 com.hederahashgraph.api.proto.java.BlockInfo)) {
return super.equals(obj);
}
com.hederahashgraph.api.proto.java.BlockInfo other = (com.hederahashgraph.api.proto.java.BlockInfo) obj;
if (getLastBlockNumber()
!= other.getLastBlockNumber()) return false;
if (hasFirstConsTimeOfLastBlock() != other.hasFirstConsTimeOfLastBlock()) return false;
if (hasFirstConsTimeOfLastBlock()) {
if (!getFirstConsTimeOfLastBlock()
.equals(other.getFirstConsTimeOfLastBlock())) return false;
}
if (!getBlockHashes()
.equals(other.getBlockHashes())) return false;
if (hasConsTimeOfLastHandledTxn() != other.hasConsTimeOfLastHandledTxn()) return false;
if (hasConsTimeOfLastHandledTxn()) {
if (!getConsTimeOfLastHandledTxn()
.equals(other.getConsTimeOfLastHandledTxn())) return false;
}
if (getMigrationRecordsStreamed()
!= other.getMigrationRecordsStreamed()) return false;
if (hasFirstConsTimeOfCurrentBlock() != other.hasFirstConsTimeOfCurrentBlock()) return false;
if (hasFirstConsTimeOfCurrentBlock()) {
if (!getFirstConsTimeOfCurrentBlock()
.equals(other.getFirstConsTimeOfCurrentBlock())) 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) + LAST_BLOCK_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastBlockNumber());
if (hasFirstConsTimeOfLastBlock()) {
hash = (37 * hash) + FIRST_CONS_TIME_OF_LAST_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getFirstConsTimeOfLastBlock().hashCode();
}
hash = (37 * hash) + BLOCK_HASHES_FIELD_NUMBER;
hash = (53 * hash) + getBlockHashes().hashCode();
if (hasConsTimeOfLastHandledTxn()) {
hash = (37 * hash) + CONS_TIME_OF_LAST_HANDLED_TXN_FIELD_NUMBER;
hash = (53 * hash) + getConsTimeOfLastHandledTxn().hashCode();
}
hash = (37 * hash) + MIGRATION_RECORDS_STREAMED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMigrationRecordsStreamed());
if (hasFirstConsTimeOfCurrentBlock()) {
hash = (37 * hash) + FIRST_CONS_TIME_OF_CURRENT_BLOCK_FIELD_NUMBER;
hash = (53 * hash) + getFirstConsTimeOfCurrentBlock().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.hederahashgraph.api.proto.java.BlockInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.BlockInfo 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 com.hederahashgraph.api.proto.java.BlockInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.BlockInfo 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 com.hederahashgraph.api.proto.java.BlockInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hederahashgraph.api.proto.java.BlockInfo 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(com.hederahashgraph.api.proto.java.BlockInfo 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;
}
/**
*
**
* Information about ongoing, most recently completed, and last 256 blocks.
*
*
* Protobuf type {@code proto.BlockInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.BlockInfo)
com.hederahashgraph.api.proto.java.BlockInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hederahashgraph.api.proto.java.BlockInfo.class, com.hederahashgraph.api.proto.java.BlockInfo.Builder.class);
}
// Construct using com.hederahashgraph.api.proto.java.BlockInfo.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();
lastBlockNumber_ = 0L;
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = null;
} else {
firstConsTimeOfLastBlock_ = null;
firstConsTimeOfLastBlockBuilder_ = null;
}
blockHashes_ = com.google.protobuf.ByteString.EMPTY;
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = null;
} else {
consTimeOfLastHandledTxn_ = null;
consTimeOfLastHandledTxnBuilder_ = null;
}
migrationRecordsStreamed_ = false;
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = null;
} else {
firstConsTimeOfCurrentBlock_ = null;
firstConsTimeOfCurrentBlockBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hederahashgraph.api.proto.java.BlockInfoOuterClass.internal_static_proto_BlockInfo_descriptor;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo getDefaultInstanceForType() {
return com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance();
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo build() {
com.hederahashgraph.api.proto.java.BlockInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hederahashgraph.api.proto.java.BlockInfo buildPartial() {
com.hederahashgraph.api.proto.java.BlockInfo result = new com.hederahashgraph.api.proto.java.BlockInfo(this);
result.lastBlockNumber_ = lastBlockNumber_;
if (firstConsTimeOfLastBlockBuilder_ == null) {
result.firstConsTimeOfLastBlock_ = firstConsTimeOfLastBlock_;
} else {
result.firstConsTimeOfLastBlock_ = firstConsTimeOfLastBlockBuilder_.build();
}
result.blockHashes_ = blockHashes_;
if (consTimeOfLastHandledTxnBuilder_ == null) {
result.consTimeOfLastHandledTxn_ = consTimeOfLastHandledTxn_;
} else {
result.consTimeOfLastHandledTxn_ = consTimeOfLastHandledTxnBuilder_.build();
}
result.migrationRecordsStreamed_ = migrationRecordsStreamed_;
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
result.firstConsTimeOfCurrentBlock_ = firstConsTimeOfCurrentBlock_;
} else {
result.firstConsTimeOfCurrentBlock_ = firstConsTimeOfCurrentBlockBuilder_.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 com.hederahashgraph.api.proto.java.BlockInfo) {
return mergeFrom((com.hederahashgraph.api.proto.java.BlockInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hederahashgraph.api.proto.java.BlockInfo other) {
if (other == com.hederahashgraph.api.proto.java.BlockInfo.getDefaultInstance()) return this;
if (other.getLastBlockNumber() != 0L) {
setLastBlockNumber(other.getLastBlockNumber());
}
if (other.hasFirstConsTimeOfLastBlock()) {
mergeFirstConsTimeOfLastBlock(other.getFirstConsTimeOfLastBlock());
}
if (other.getBlockHashes() != com.google.protobuf.ByteString.EMPTY) {
setBlockHashes(other.getBlockHashes());
}
if (other.hasConsTimeOfLastHandledTxn()) {
mergeConsTimeOfLastHandledTxn(other.getConsTimeOfLastHandledTxn());
}
if (other.getMigrationRecordsStreamed() != false) {
setMigrationRecordsStreamed(other.getMigrationRecordsStreamed());
}
if (other.hasFirstConsTimeOfCurrentBlock()) {
mergeFirstConsTimeOfCurrentBlock(other.getFirstConsTimeOfCurrentBlock());
}
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 {
com.hederahashgraph.api.proto.java.BlockInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hederahashgraph.api.proto.java.BlockInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long lastBlockNumber_ ;
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @return The lastBlockNumber.
*/
@java.lang.Override
public long getLastBlockNumber() {
return lastBlockNumber_;
}
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @param value The lastBlockNumber to set.
* @return This builder for chaining.
*/
public Builder setLastBlockNumber(long value) {
lastBlockNumber_ = value;
onChanged();
return this;
}
/**
*
**
* The last block number, this is the last completed immutable block.
*
*
* int64 last_block_number = 1;
* @return This builder for chaining.
*/
public Builder clearLastBlockNumber() {
lastBlockNumber_ = 0L;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfLastBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> firstConsTimeOfLastBlockBuilder_;
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return Whether the firstConsTimeOfLastBlock field is set.
*/
public boolean hasFirstConsTimeOfLastBlock() {
return firstConsTimeOfLastBlockBuilder_ != null || firstConsTimeOfLastBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
* @return The firstConsTimeOfLastBlock.
*/
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfLastBlock() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
return firstConsTimeOfLastBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfLastBlock_;
} else {
return firstConsTimeOfLastBlockBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder setFirstConsTimeOfLastBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstConsTimeOfLastBlock_ = value;
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder setFirstConsTimeOfLastBlock(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = builderForValue.build();
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder mergeFirstConsTimeOfLastBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfLastBlockBuilder_ == null) {
if (firstConsTimeOfLastBlock_ != null) {
firstConsTimeOfLastBlock_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(firstConsTimeOfLastBlock_).mergeFrom(value).buildPartial();
} else {
firstConsTimeOfLastBlock_ = value;
}
onChanged();
} else {
firstConsTimeOfLastBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public Builder clearFirstConsTimeOfLastBlock() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlock_ = null;
onChanged();
} else {
firstConsTimeOfLastBlock_ = null;
firstConsTimeOfLastBlockBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getFirstConsTimeOfLastBlockBuilder() {
onChanged();
return getFirstConsTimeOfLastBlockFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfLastBlockOrBuilder() {
if (firstConsTimeOfLastBlockBuilder_ != null) {
return firstConsTimeOfLastBlockBuilder_.getMessageOrBuilder();
} else {
return firstConsTimeOfLastBlock_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfLastBlock_;
}
}
/**
*
**
* The consensus time of the first transaction of the last block, this is the last completed immutable block.
*
*
* .proto.Timestamp first_cons_time_of_last_block = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getFirstConsTimeOfLastBlockFieldBuilder() {
if (firstConsTimeOfLastBlockBuilder_ == null) {
firstConsTimeOfLastBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getFirstConsTimeOfLastBlock(),
getParentForChildren(),
isClean());
firstConsTimeOfLastBlock_ = null;
}
return firstConsTimeOfLastBlockBuilder_;
}
private com.google.protobuf.ByteString blockHashes_ = com.google.protobuf.ByteString.EMPTY;
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @return The blockHashes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBlockHashes() {
return blockHashes_;
}
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @param value The blockHashes to set.
* @return This builder for chaining.
*/
public Builder setBlockHashes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
blockHashes_ = value;
onChanged();
return this;
}
/**
*
**
* SHA384 48 byte hashes of the last 256 blocks in single byte array.
* First 48 bytes is the oldest block.
* Last 48 bytes is the newest block, which is the last fully completed immutable block.
* If we are shortly after genesis and there are less than 256 blocks then this could contain less than 256 hashes.
*
*
* bytes block_hashes = 3;
* @return This builder for chaining.
*/
public Builder clearBlockHashes() {
blockHashes_ = getDefaultInstance().getBlockHashes();
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp consTimeOfLastHandledTxn_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> consTimeOfLastHandledTxnBuilder_;
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return Whether the consTimeOfLastHandledTxn field is set.
*/
public boolean hasConsTimeOfLastHandledTxn() {
return consTimeOfLastHandledTxnBuilder_ != null || consTimeOfLastHandledTxn_ != null;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
* @return The consTimeOfLastHandledTxn.
*/
public com.hederahashgraph.api.proto.java.Timestamp getConsTimeOfLastHandledTxn() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
return consTimeOfLastHandledTxn_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consTimeOfLastHandledTxn_;
} else {
return consTimeOfLastHandledTxnBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder setConsTimeOfLastHandledTxn(com.hederahashgraph.api.proto.java.Timestamp value) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
consTimeOfLastHandledTxn_ = value;
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder setConsTimeOfLastHandledTxn(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = builderForValue.build();
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder mergeConsTimeOfLastHandledTxn(com.hederahashgraph.api.proto.java.Timestamp value) {
if (consTimeOfLastHandledTxnBuilder_ == null) {
if (consTimeOfLastHandledTxn_ != null) {
consTimeOfLastHandledTxn_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(consTimeOfLastHandledTxn_).mergeFrom(value).buildPartial();
} else {
consTimeOfLastHandledTxn_ = value;
}
onChanged();
} else {
consTimeOfLastHandledTxnBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public Builder clearConsTimeOfLastHandledTxn() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxn_ = null;
onChanged();
} else {
consTimeOfLastHandledTxn_ = null;
consTimeOfLastHandledTxnBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getConsTimeOfLastHandledTxnBuilder() {
onChanged();
return getConsTimeOfLastHandledTxnFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsTimeOfLastHandledTxnOrBuilder() {
if (consTimeOfLastHandledTxnBuilder_ != null) {
return consTimeOfLastHandledTxnBuilder_.getMessageOrBuilder();
} else {
return consTimeOfLastHandledTxn_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consTimeOfLastHandledTxn_;
}
}
/**
*
**
* The consensus time of the last transaction that was handled by the node. This property is how we 'advance the
* consensus clock', i.e. continually setting this property to the latest consensus timestamp (and thus transaction)
* handled by the node.
*
*
* .proto.Timestamp cons_time_of_last_handled_txn = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getConsTimeOfLastHandledTxnFieldBuilder() {
if (consTimeOfLastHandledTxnBuilder_ == null) {
consTimeOfLastHandledTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getConsTimeOfLastHandledTxn(),
getParentForChildren(),
isClean());
consTimeOfLastHandledTxn_ = null;
}
return consTimeOfLastHandledTxnBuilder_;
}
private boolean migrationRecordsStreamed_ ;
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @return The migrationRecordsStreamed.
*/
@java.lang.Override
public boolean getMigrationRecordsStreamed() {
return migrationRecordsStreamed_;
}
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @param value The migrationRecordsStreamed to set.
* @return This builder for chaining.
*/
public Builder setMigrationRecordsStreamed(boolean value) {
migrationRecordsStreamed_ = value;
onChanged();
return this;
}
/**
*
**
* A flag indicating whether migration records have been published. This property should be marked 'false'
* immediately following a node upgrade, and marked 'true' once the migration records (if any) are published, which
* should happen during the first transaction handled by the node.
*
*
* bool migration_records_streamed = 5;
* @return This builder for chaining.
*/
public Builder clearMigrationRecordsStreamed() {
migrationRecordsStreamed_ = false;
onChanged();
return this;
}
private com.hederahashgraph.api.proto.java.Timestamp firstConsTimeOfCurrentBlock_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> firstConsTimeOfCurrentBlockBuilder_;
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return Whether the firstConsTimeOfCurrentBlock field is set.
*/
public boolean hasFirstConsTimeOfCurrentBlock() {
return firstConsTimeOfCurrentBlockBuilder_ != null || firstConsTimeOfCurrentBlock_ != null;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
* @return The firstConsTimeOfCurrentBlock.
*/
public com.hederahashgraph.api.proto.java.Timestamp getFirstConsTimeOfCurrentBlock() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
return firstConsTimeOfCurrentBlock_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfCurrentBlock_;
} else {
return firstConsTimeOfCurrentBlockBuilder_.getMessage();
}
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder setFirstConsTimeOfCurrentBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
firstConsTimeOfCurrentBlock_ = value;
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder setFirstConsTimeOfCurrentBlock(
com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = builderForValue.build();
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder mergeFirstConsTimeOfCurrentBlock(com.hederahashgraph.api.proto.java.Timestamp value) {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
if (firstConsTimeOfCurrentBlock_ != null) {
firstConsTimeOfCurrentBlock_ =
com.hederahashgraph.api.proto.java.Timestamp.newBuilder(firstConsTimeOfCurrentBlock_).mergeFrom(value).buildPartial();
} else {
firstConsTimeOfCurrentBlock_ = value;
}
onChanged();
} else {
firstConsTimeOfCurrentBlockBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public Builder clearFirstConsTimeOfCurrentBlock() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlock_ = null;
onChanged();
} else {
firstConsTimeOfCurrentBlock_ = null;
firstConsTimeOfCurrentBlockBuilder_ = null;
}
return this;
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public com.hederahashgraph.api.proto.java.Timestamp.Builder getFirstConsTimeOfCurrentBlockBuilder() {
onChanged();
return getFirstConsTimeOfCurrentBlockFieldBuilder().getBuilder();
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
public com.hederahashgraph.api.proto.java.TimestampOrBuilder getFirstConsTimeOfCurrentBlockOrBuilder() {
if (firstConsTimeOfCurrentBlockBuilder_ != null) {
return firstConsTimeOfCurrentBlockBuilder_.getMessageOrBuilder();
} else {
return firstConsTimeOfCurrentBlock_ == null ?
com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : firstConsTimeOfCurrentBlock_;
}
}
/**
*
**
* The consensus time of the first transaction in the current block; necessary for reconnecting nodes to detect
* when the current block is finished.
*
*
* .proto.Timestamp first_cons_time_of_current_block = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>
getFirstConsTimeOfCurrentBlockFieldBuilder() {
if (firstConsTimeOfCurrentBlockBuilder_ == null) {
firstConsTimeOfCurrentBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>(
getFirstConsTimeOfCurrentBlock(),
getParentForChildren(),
isClean());
firstConsTimeOfCurrentBlock_ = null;
}
return firstConsTimeOfCurrentBlockBuilder_;
}
@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:proto.BlockInfo)
}
// @@protoc_insertion_point(class_scope:proto.BlockInfo)
private static final com.hederahashgraph.api.proto.java.BlockInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hederahashgraph.api.proto.java.BlockInfo();
}
public static com.hederahashgraph.api.proto.java.BlockInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BlockInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BlockInfo(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 com.hederahashgraph.api.proto.java.BlockInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}